generated from john/python-template
19 lines
551 B
Python
19 lines
551 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")
|
|
jobs_response = client.get("/ui/jobs")
|
|
|
|
assert upload_response.status_code == 200
|
|
assert jobs_response.status_code == 200
|