Fix tutorial logout test.
This commit is contained in:
parent
d92b64aa27
commit
d14c54b5d9
2 changed files with 2 additions and 0 deletions
|
|
@ -349,6 +349,7 @@ not contain ``user_id`` after logging out.
|
||||||
auth.login()
|
auth.login()
|
||||||
|
|
||||||
with client:
|
with client:
|
||||||
|
client.get('/')
|
||||||
auth.logout()
|
auth.logout()
|
||||||
assert 'user_id' not in session
|
assert 'user_id' not in session
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -62,5 +62,6 @@ def test_logout(client, auth):
|
||||||
auth.login()
|
auth.login()
|
||||||
|
|
||||||
with client:
|
with client:
|
||||||
|
client.get("/")
|
||||||
auth.logout()
|
auth.logout()
|
||||||
assert 'user_id' not in session
|
assert 'user_id' not in session
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue