From 2f54b70dd8245bbb52c9e295fd3809c3c7759a32 Mon Sep 17 00:00:00 2001 From: wakonig_k Date: Mon, 20 Jan 2025 21:37:57 +0100 Subject: [PATCH] wip --- backend/tests/test_login.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/tests/test_login.py b/backend/tests/test_login.py index 9d1827b..30b840b 100644 --- a/backend/tests/test_login.py +++ b/backend/tests/test_login.py @@ -36,11 +36,11 @@ def test_login_wrong_password(backend_client): @pytest.mark.timeout(60) def test_login_unknown_user(backend_client): """ - Test that the login returns a 404 when the user is unknown. + Test that the login returns a 401 when the user is unknown. """ response = backend_client.post( "/api/v1/user/login", json={"username": "no_user@bec_atlas.ch", "password": "wrong_password"}, ) - assert response.status_code == 404 + assert response.status_code == 401 assert response.json() == {"detail": "User not found or password is incorrect"}