From 98fe5ab864f05f63b5012ce9bdcbbf023bf53dc8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 8 Feb 2026 16:14:45 +0000 Subject: [PATCH] test: add inline preview header verification test Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com> --- tests/test_file_detail_endpoints.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_file_detail_endpoints.py b/tests/test_file_detail_endpoints.py index 1cdc1f0f..d7b52233 100644 --- a/tests/test_file_detail_endpoints.py +++ b/tests/test_file_detail_endpoints.py @@ -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."""