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