fix: Use startswith for Content-Type header assertion

Signed-off-by: Chrysostomos Nanakos <chris@include.gr>
This commit is contained in:
Chrysostomos Nanakos 2025-10-07 11:13:02 +03:00
parent b1e4bda940
commit 162a8f4a54
No known key found for this signature in database

View File

@ -25,7 +25,7 @@ async def test_should_create_file():
)
assert response.status_code == 200
assert response.headers["content-type"] == "text/plain"
assert response.headers["content-type"].startswith("text/plain")
assert response.charset_encoding == "utf-8"
manifest = await codex_client.manifest(response.text)