feat: reorder project route registration to prioritize static UI paths and add pytest coverage for navigation endpoints

This commit is contained in:
2025-11-09 19:21:25 +01:00
parent 400f85c907
commit dad862e48e
3 changed files with 55 additions and 39 deletions

View File

@@ -71,3 +71,15 @@ class TestDashboardRoute:
assert "No simulation runs yet" in html
assert "All scenarios look good" in html
assert "" in html # Last data import placeholder
class TestProjectUIRoutes:
def test_projects_ui_page_resolves(self, client: TestClient) -> None:
response = client.get("/projects/ui")
assert response.status_code == 200
assert "Projects" in response.text
def test_projects_create_form_resolves(self, client: TestClient) -> None:
response = client.get("/projects/create")
assert response.status_code == 200
assert "Create Project" in response.text