summaryrefslogtreecommitdiff
path: root/tests/auth_tests
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2022-03-24 17:41:53 +0100
committerGitHub <noreply@github.com>2022-03-24 17:41:53 +0100
commit94d8ed55fa8e181b98f818a1b2805c66943cfeec (patch)
tree4da39a8ddb814c7bcc91feb4f6dde1174ebad549 /tests/auth_tests
parent1b695fbbc203c163bf7b8d78f6313a6c506fb938 (diff)
downloaddjango-94d8ed55fa8e181b98f818a1b2805c66943cfeec.tar.gz
Refs #15619 -- Logged out with POST requests in admin.
Diffstat (limited to 'tests/auth_tests')
-rw-r--r--tests/auth_tests/test_views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auth_tests/test_views.py b/tests/auth_tests/test_views.py
index 38e2234416..e056d0f002 100644
--- a/tests/auth_tests/test_views.py
+++ b/tests/auth_tests/test_views.py
@@ -71,7 +71,7 @@ class AuthViewsTestCase(TestCase):
return response
def logout(self):
- response = self.client.get("/admin/logout/")
+ response = self.client.post("/admin/logout/")
self.assertEqual(response.status_code, 200)
self.assertNotIn(SESSION_KEY, self.client.session)