1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-07-05 06:54:10 +02:00

fix logout test

This commit is contained in:
quark
2025-07-03 15:18:29 +02:00
parent 7eafe33945
commit f54dd30482
2 changed files with 7 additions and 4 deletions

View File

@ -44,7 +44,7 @@ class TemplateLoggedInTests(TestCase):
self.assertRedirects(response, settings.LOGIN_REDIRECT_URL, 302, 302)
def test_logout(self):
response = self.client.get(reverse("logout"))
response = self.client.post(reverse("logout"))
self.assertEqual(response.status_code, 200)
def test_admin_index(self):