epub2pdf: title-based export names, .pdf download headers, security hardening (68 tests green)

This commit is contained in:
BMad Master
2026-08-30 09:03:39 -04:00
commit 5580004aeb
22 changed files with 2351 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
"""Liveness + UI entrypoint smoke tests (no conversion involved)."""
import app
def test_health_returns_ok_json(client):
resp = client.get("/health")
assert resp.status_code == 200
body = resp.get_json()
assert body["status"] == "ok"
assert body["max_upload_mb"] == 400
def test_index_serves_ui_html(client):
resp = client.get("/")
assert resp.status_code == 200
text = resp.get_data(as_text=True)
assert "<html" in text.lower()
assert "/api/convert" in text # UI knows its upload endpoint