mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Add message when user logs out, refs #840
This commit is contained in:
parent
16f592247a
commit
51427323e6
3 changed files with 7 additions and 3 deletions
|
|
@ -74,5 +74,7 @@ def test_logout(app_client):
|
|||
cookies={"ds_actor": app_client.actor_cookie({"id": "test"})},
|
||||
allow_redirects=False,
|
||||
)
|
||||
assert {"ds_actor": ""} == response4.cookies
|
||||
assert 302 == response4.status
|
||||
assert "" == response4.cookies["ds_actor"]
|
||||
# Should also have set a message
|
||||
messages = app_client.ds.unsign(response4.cookies["ds_messages"], "messages")
|
||||
assert [["You are now logged out", 2]] == messages
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue