From 39a0a2939ace8924238cd025e6e4a136868f9eb9 Mon Sep 17 00:00:00 2001 From: Shroominic Date: Wed, 29 Oct 2025 13:27:44 +0800 Subject: [PATCH] refactor old tests --- .../test_general_info_endpoints.py | 72 +- tests/unit/test_fee_consistency.py | 748 ++---------------- 2 files changed, 68 insertions(+), 752 deletions(-) diff --git a/tests/integration/test_general_info_endpoints.py b/tests/integration/test_general_info_endpoints.py index 56d935b6..a8c35c5b 100644 --- a/tests/integration/test_general_info_endpoints.py +++ b/tests/integration/test_general_info_endpoints.py @@ -271,22 +271,13 @@ async def test_models_endpoint_accept_headers(integration_client: AsyncClient) - async def test_admin_endpoint_unauthenticated( integration_client: AsyncClient, db_snapshot: Any ) -> None: - """Test GET /admin/ endpoint without authentication shows setup form""" + """Test GET /admin/ endpoint redirects to /""" await db_snapshot.capture() response = await integration_client.get("/admin/") - assert response.status_code == 200 - assert "text/html" in response.headers["content-type"] - - html_content = response.text - assert "" in html_content - assert "" in html_content - assert "" in html_content or "