feat: add dark source inspection interface

This commit is contained in:
bot
2026-08-12 18:42:03 +03:00
parent db75f2c4f8
commit 277aa8a568
9 changed files with 1090 additions and 16 deletions
+12 -2
View File
@@ -12,8 +12,18 @@ def test_health_returns_healthy() -> None:
assert response.json() == {"status": "healthy"}
def test_root_identifies_application() -> None:
def test_root_renders_interface() -> None:
response = client.get("/")
assert response.status_code == 200
assert response.json() == {"name": "Media Ingest", "status": "running"}
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