Test and cover note app
This commit is contained in:
parent
c6abad107a
commit
7c9287e387
7 changed files with 407 additions and 31 deletions
|
|
@ -149,3 +149,9 @@ class TestPermissionDenied(TestCase):
|
|||
def test_list_soge_credits(self):
|
||||
response = self.client.get(reverse("treasury:soge_credits"))
|
||||
self.assertEqual(response.status_code, 403)
|
||||
|
||||
|
||||
class TestLoginRedirect(TestCase):
|
||||
def test_consos_page(self):
|
||||
response = self.client.get(reverse("note:consos"))
|
||||
self.assertRedirects(response, reverse("login") + "?next=" + reverse("note:consos"), 302, 200)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue