From 533932b7984c6cc80948f5b81ccb321140c7efac Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Sun, 25 Jan 2026 03:20:28 +0000 Subject: [PATCH] Fix test expected HTTP code. --- tests/test_api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_api.py b/tests/test_api.py index 6078369..00b5ca2 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -293,12 +293,12 @@ class TestSetSessionEndpoint: """Tests for POST /auth/api/set-session""" @pytest.mark.asyncio - async def test_set_session_without_bearer_returns_403( + async def test_set_session_without_bearer_returns_401( self, client: httpx.AsyncClient ): - """Set session without bearer token should return 403.""" + """Set session without bearer token should return 401.""" response = await client.post("/auth/api/set-session") - assert response.status_code == 403 + assert response.status_code == 401 @pytest.mark.asyncio async def test_set_session_with_valid_bearer_token(