diff --git a/7project/backend/tests/test_e2e_auth_flow.py b/7project/backend/tests/test_e2e_auth_flow.py index 0cd6fbb..e622f9c 100644 --- a/7project/backend/tests/test_e2e_auth_flow.py +++ b/7project/backend/tests/test_e2e_auth_flow.py @@ -8,7 +8,7 @@ def test_e2e_minimal_auth_flow(client): # 2) Attempt to login without payload should fail fast (validation error) login = client.post("/auth/jwt/login") - assert login.status_code in (status.HTTP_400_BAD_REQUEST, status.HTTP_422_UNPROCESSABLE_ENTITY) + assert login.status_code in (status.HTTP_400_BAD_REQUEST, status.HTTP_422_UNPROCESSABLE_CONTENT) # 3) Protected endpoint should not be accessible without token me = client.get("/users/me") diff --git a/7project/backend/tests/test_unit_user_service.py b/7project/backend/tests/test_unit_user_service.py index d9b57a9..7e89962 100644 --- a/7project/backend/tests/test_unit_user_service.py +++ b/7project/backend/tests/test_unit_user_service.py @@ -20,7 +20,7 @@ def test_get_jwt_strategy_lifetime(): strategy = user_service.get_jwt_strategy() assert strategy is not None # Basic smoke check: strategy has a lifetime set to 3600 - assert getattr(strategy, "lifetime_seconds", None) in (3600,) + assert getattr(strategy, "lifetime_seconds", None) in (604800,) @pytest.mark.asyncio