Skip to content

Commit 102a612

Browse files
test: POST instead of GET for logout tests
1 parent 37a6521 commit 102a612

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ietf/ietfauth/tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def test_login_and_logout(self):
9898
self.assertEqual(urlsplit(r["Location"])[2], urlreverse(ietf.ietfauth.views.profile))
9999

100100
# try logging out
101-
r = self.client.get(urlreverse('django.contrib.auth.views.logout'))
101+
r = self.client.post(urlreverse('django.contrib.auth.views.logout'), {})
102102
self.assertEqual(r.status_code, 200)
103103
self.assertNotContains(r, "accounts/logout")
104104

@@ -215,7 +215,7 @@ def test_create_allowlisted_account(self):
215215
self.assertContains(r, "Allowlist entry creation successful")
216216

217217
# log out
218-
r = self.client.get(urlreverse('django.contrib.auth.views.logout'))
218+
r = self.client.post(urlreverse('django.contrib.auth.views.logout'), {})
219219
self.assertEqual(r.status_code, 200)
220220

221221
# register and verify allowlisted email

0 commit comments

Comments
 (0)