Ported app_client to ds_client where possible in test_auth.py, refs #1959

This commit is contained in:
Simon Willison 2022-12-15 14:18:40 -08:00
commit 425ac4357f
6 changed files with 91 additions and 67 deletions

View file

@ -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")