mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Ported app_client to ds_client where possible in test_auth.py, refs #1959
This commit is contained in:
parent
b077e63dc6
commit
425ac4357f
6 changed files with 91 additions and 67 deletions
|
|
@ -1,4 +1,5 @@
|
|||
from .fixtures import app_client
|
||||
from .utils import cookie_was_deleted
|
||||
import pytest
|
||||
|
||||
|
||||
|
|
@ -25,4 +26,4 @@ def test_messages_are_displayed_and_cleared(app_client):
|
|||
# Messages should be in that HTML
|
||||
assert "xmessagex" in response.text
|
||||
# Cookie should have been set that clears messages
|
||||
assert response.cookie_was_deleted("ds_messages")
|
||||
assert cookie_was_deleted(response, "ds_messages")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue