Files

30 lines
767 B
Python
Raw Permalink Normal View History

from fastapi.testclient import TestClient
from app.main import app
client = TestClient(app)
def test_health_returns_healthy() -> None:
response = client.get("/health")
assert response.status_code == 200
assert response.json() == {"status": "healthy"}
2026-08-12 18:42:03 +03:00
def test_root_renders_interface() -> None:
response = client.get("/")
assert response.status_code == 200
2026-08-12 18:42:03 +03:00
assert response.headers["content-type"].startswith("text/html")
assert "Media Ingest" in response.text
assert 'id="inspect-form"' in response.text
assert 'id="new-source"' in response.text
def test_static_styles_are_served() -> None:
response = client.get("/static/styles.css")
assert response.status_code == 200
assert "--background" in response.text