Remove all references to "uploads" page

This commit is contained in:
Jim Lancaster
2026-08-06 16:53:21 -05:00
parent 5090e238ff
commit fce7107863
8 changed files with 4 additions and 37 deletions
-1
View File
@@ -16,7 +16,6 @@ def test_page_registration_uses_vibescribe_theme(monkeypatch):
run_options: dict[str, object] = {}
monkeypatch.setattr("transcription.ui.ui.add_css", lambda css, **_kwargs: registered_css.append(css))
monkeypatch.setattr("transcription.ui.register_upload_page", lambda: None)
monkeypatch.setattr("transcription.ui.register_jobs_page", lambda: None)
monkeypatch.setattr(
"transcription.ui.ui.run_with",
-1
View File
@@ -12,7 +12,6 @@ class TestNavigationAndMounts:
[
("/", 307, "/ui/homepage"),
("/ui", 307, "/ui/homepage"),
("/ui/upload", 307, "/jobs/new"),
],
)
def test_entrypoint_redirects(self, app_client, url: str, expected_status: int, expected_redirect: str):
-2
View File
@@ -12,14 +12,12 @@ class TestPageRegistration:
_, client = app_client
homepage_response = client.get("/ui/homepage")
upload_response = client.get("/ui/upload", follow_redirects=False)
documents_response = client.get("/ui/documents")
people_response = client.get("/ui/people")
sources_response = client.get("/ui/sources")
jobs_response = client.get("/ui/jobs")
assert homepage_response.status_code == 200
assert upload_response.status_code == 307
assert documents_response.status_code == 200
assert people_response.status_code == 200
assert sources_response.status_code == 200
+2 -9
View File
@@ -1,11 +1,11 @@
"""Tests for upload and entry-point routes."""
"""Tests for homepage and entry-point routes."""
import pytest
@pytest.mark.integration
class TestPageRendering:
"""Verify upload-related routes return working pages."""
"""Verify entry-point routes return working pages."""
def test_root_redirects_to_ui(self, app_client):
"""GET / redirects to the UI mount point."""
@@ -42,10 +42,3 @@ class TestPageRendering:
assert "Edit Home Page" in response.text
assert "Homepage markdown" in response.text
def test_upload_page_renders_expected_controls(self, app_client):
"""GET /ui/upload redirects to the job-create flow."""
_, client = app_client
response = client.get("/ui/upload", follow_redirects=False)
assert response.status_code == 307
assert response.headers["location"] == "/jobs/new"