1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Refs #15619 -- Logged out with POST requests in admin.

This commit is contained in:
Mariusz Felisiak
2022-03-24 17:41:53 +01:00
committed by GitHub
parent 1b695fbbc2
commit 94d8ed55fa
7 changed files with 84 additions and 44 deletions

View File

@@ -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)