mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
parent
1a861be19e
commit
18a64fbb29
12 changed files with 193 additions and 13 deletions
|
|
@ -101,7 +101,7 @@ def test_logout_button_in_navigation(app_client, path):
|
|||
)
|
||||
anon_response = app_client.get(path)
|
||||
for fragment in (
|
||||
"<strong>test</strong> ·",
|
||||
"<strong>test</strong>",
|
||||
'<form action="/-/logout" method="post">',
|
||||
):
|
||||
assert fragment in response.text
|
||||
|
|
@ -112,5 +112,4 @@ def test_logout_button_in_navigation(app_client, path):
|
|||
def test_no_logout_button_in_navigation_if_no_ds_actor_cookie(app_client, path):
|
||||
response = app_client.get(path + "?_bot=1")
|
||||
assert "<strong>bot</strong>" in response.text
|
||||
assert "<strong>bot</strong> ·" not in response.text
|
||||
assert '<form action="/-/logout" method="post">' not in response.text
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue