generated from john/python-template
25 lines
890 B
Python
25 lines
890 B
Python
"""Tests for UI page registration wiring."""
|
|
|
|
import pytest
|
|
|
|
|
|
@pytest.mark.integration
|
|
class TestPageRegistration:
|
|
"""Verify page registration and mounted UI routes."""
|
|
|
|
def test_ui_mount_serves_registered_pages(self, app_client):
|
|
"""Mounted UI routes respond successfully when the full app is created."""
|
|
_, client = app_client
|
|
|
|
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 upload_response.status_code == 307
|
|
assert documents_response.status_code == 200
|
|
assert people_response.status_code == 200
|
|
assert sources_response.status_code == 200
|
|
assert jobs_response.status_code == 200
|