From 1af39f043fa0018f02c25fe96ec436fd62e11102 Mon Sep 17 00:00:00 2001 From: Shroominic Date: Sat, 31 Jan 2026 07:37:39 +0800 Subject: [PATCH] fix tests --- tests/integration/test_general_info_endpoints.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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