any-file to PDF (Phase 1): converters/ dispatcher, images/text/md/csv/json/xml/svg/pdf-passthrough, 112 tests green

This commit is contained in:
sirdave73
2026-09-02 01:53:24 -04:00
parent 0b575a3e1f
commit 345c39417b
17 changed files with 1306 additions and 17 deletions
+2 -1
View File
@@ -7,7 +7,8 @@ from tests.helpers import make_epub_zip, make_zip_without_container, wait_for_jo
def test_wrong_extension_returns_400(client, fixture_epub_bytes):
files = {"file": (io.BytesIO(fixture_epub_bytes), "book.pdf")}
# gap patch: .pdf is now a supported type; use a still-unsupported ext.
files = {"file": (io.BytesIO(fixture_epub_bytes), "book.exe")}
resp = client.post("/api/convert", data=files, content_type="multipart/form-data")
assert resp.status_code == 400
assert ".epub" in resp.get_json()["error"]