ui redirects

This commit is contained in:
John Lancaster
2026-06-28 14:19:03 -05:00
parent 912cfd44de
commit dba96e7a72
3 changed files with 49 additions and 12 deletions
+14
View File
@@ -31,6 +31,20 @@ def client(tmp_path: Path):
class TestPageRendering:
"""Verify the upload page is available and includes the main controls."""
def test_root_redirects_to_ui(self, client):
"""GET / redirects to the UI mount point."""
response = client.get("/", follow_redirects=False)
assert response.status_code == 307
assert response.headers["location"] == "/ui"
def test_ui_redirects_to_upload(self, client):
"""GET /ui redirects to the upload page."""
response = client.get("/ui", follow_redirects=False)
assert response.status_code == 307
assert response.headers["location"] == "/ui/upload"
def test_upload_page_renders_expected_controls(self, client):
"""GET /ui/upload returns the page shell and upload controls."""
response = client.get("/ui/upload")