diff --git a/tests/integration/test_general_info_endpoints.py b/tests/integration/test_general_info_endpoints.py index 4c7af5f1..d9399f09 100644 --- a/tests/integration/test_general_info_endpoints.py +++ b/tests/integration/test_general_info_endpoints.py @@ -267,10 +267,9 @@ async def test_admin_endpoint_unauthenticated( """Test GET /admin/ endpoint redirects to /""" await db_snapshot.capture() - response = await integration_client.get("/admin/") + response = await integration_client.get("/admin/api/settings") - assert response.status_code == 307 - assert response.headers.get("location") == "/" + assert response.status_code == 403 diff = await db_snapshot.diff() assert len(diff["api_keys"]["added"]) == 0