test: add inline preview header verification test

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-08 16:14:45 +00:00
parent ed0bac7345
commit 98fe5ab864
+3
View File
@@ -150,6 +150,9 @@ class TestFilePreview:
response = client.get(f"/api/files/{file_record.id}/preview?version=original")
assert response.status_code == 200
assert response.headers["content-type"].startswith("application/pdf")
# Verify file is set to display inline, not download
assert "content-disposition" in response.headers
assert "inline" in response.headers["content-disposition"]
def test_preview_processed_file_not_found(self, client: TestClient, db_session, sample_pdf_path):
"""Test getting processed file preview when it doesn't exist."""