Skip to content

Commit

Permalink
Update tests/integration/admin/views/test_login_view.py
Browse files Browse the repository at this point in the history
  • Loading branch information
artamaney authored Jan 19, 2024
1 parent b828906 commit 1e6933a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/integration/admin/views/test_login_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ def test_show_flash_without_chat_for_unregistered_user(
test_client: FlaskClient,
) -> None:
test_app.config["WTF_CSRF_ENABLED"] = False
with create_test_session():
response = test_client.post("/login", data={"username": "kek", "password": "12345"}, follow_redirects=True)
response = test_client.post("/login", data={"username": "kek", "password": "12345"}, follow_redirects=True)

assert "Username 'kek' is not registered!" in response.data.decode(
"utf-8"
Expand Down

0 comments on commit 1e6933a

Please sign in to comment.