前端bug修复

This commit is contained in:
andy committed 2026-08-26 13:13:51 +08:00
1 parent adb780bc82
commit ca2bc5f583
2 files changed
+17

No files matched your search

+8
View File
@@ -1,9 +1,17 @@
import unittest
from fastapi.testclient import TestClient
from app.main import app
class ManagementSurfaceTests(unittest.TestCase):
def test_root_redirects_to_admin_application(self) -> None:
response = TestClient(app).get("/", follow_redirects=False)
self.assertEqual(response.status_code, 307)
self.assertEqual(response.headers["location"], "/admin/")
def test_schema_routes_remain_available(self) -> None:
paths = {route.path for route in app.routes}