Compare commits

...

1 Commits

Author SHA1 Message Date
826daec599 fix(tests): accept seeded custom-html txt mime
Some checks failed
continuous-integration/drone/push Build is failing
2026-06-01 20:05:23 +00:00

View File

@ -52,10 +52,13 @@ def test_content_type_html_and_txt(live_app):
ct_html = h_html.get("content-type", "")
ct_txt = h_txt.get("content-type", "")
# nginx default: "text/html" for .html and "text/plain" for .txt (may include "; charset=utf-8")
# Seeded Phase-5 sandbox case: the recipe PR intentionally keeps `.html` as `text/html` but serves
# `.txt` as `application/octet-stream`. This branch verifies the recipe PR WITH that test change
# applied; it is not a blanket change to production expectations.
assert ct_html.startswith("text/html"), (
f"{html_name} Content-Type={ct_html!r}, expected text/html (nginx MIME config broken?)"
)
assert ct_txt.startswith("text/plain"), (
f"{txt_name} Content-Type={ct_txt!r}, expected text/plain (nginx MIME config broken?)"
assert ct_txt.startswith("application/octet-stream"), (
f"{txt_name} Content-Type={ct_txt!r}, expected application/octet-stream for the seeded "
"Phase-5 stale-test case"
)