Skip to content

Commit

Permalink
Flask port: fix test_pages
Browse files Browse the repository at this point in the history
  • Loading branch information
snarfed committed Aug 26, 2021
1 parent 311e6bb commit 59aebc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ def test_users_page_hides_deleted_and_disabled(self):
def test_logout(self):
util.now_fn = lambda: datetime.datetime(2000, 1, 1)
resp = self.client.get('/logout')
self.assertNotIn('logins=', resp.headers['Set-Cookie'])
self.assertIn('logins=;', resp.headers['Set-Cookie'])
self.assertEqual(302, resp.status_code)
self.assertEqual('http://localhost/', resp.headers['Location'])
self.assertEqual(['Logged out.'], get_flashed_messages())
Expand Down

0 comments on commit 59aebc9

Please sign in to comment.