generated from john/python-template
Remove all references to "uploads" page
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user