Skip to content

Commit

Permalink
fix test: POST for logout
Browse files Browse the repository at this point in the history
required starting with django 5.0
  • Loading branch information
xi committed Jan 3, 2024
1 parent 06d9703 commit c854e77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def test_redirect(self):

def test_public(self):
self.login()
res = self.client.get('/logout/')
res = self.client.post('/logout/')
self.assertEqual(res.status_code, 302)
self.assertEqual(res.url, '/')

Expand Down

0 comments on commit c854e77

Please sign in to comment.