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 4923ad1 commit b828906
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 @@ -24,8 +24,7 @@ def test_show_flash_with_chat_for_unregistered_user(
mock_support_chat_url: None,
) -> 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! Please contact the <a href='https://localhost'>support channel</a>!"
in response.data.decode("utf-8")
Expand Down

0 comments on commit b828906

Please sign in to comment.