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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user