From fd032f37096b9ba8c1e18145d8ceaf5216a34dff Mon Sep 17 00:00:00 2001 From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com> Date: Fri, 27 Feb 2026 01:48:25 +0530 Subject: [PATCH] refactor: simplify and clarify documentation in document upload integration tests --- .../document_upload/test_document_upload.py | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/surfsense_backend/tests/integration/document_upload/test_document_upload.py b/surfsense_backend/tests/integration/document_upload/test_document_upload.py index 49ba9ce0a..87f953a51 100644 --- a/surfsense_backend/tests/integration/document_upload/test_document_upload.py +++ b/surfsense_backend/tests/integration/document_upload/test_document_upload.py @@ -1,16 +1,10 @@ """ -Integration tests for manual document upload - HTTP API layer. +Integration tests for the document upload HTTP API. -Each test verifies a distinct user-facing behavior through the public HTTP -endpoints. Pipeline internals (indexing, chunking, embedding) are covered by -the ``indexing_pipeline`` test suite; this module focuses on the API contract, -error handling, auth, and cross-cutting concerns like duplicate detection. +Covers the API contract, auth, duplicate detection, and error handling. +Pipeline internals are tested in the ``indexing_pipeline`` suite. -External boundaries mocked: LLM summarization, text embedding, text chunking, -Redis heartbeat. Task dispatch is swapped via DI (InlineTaskDispatcher). - -Prerequisites: - - PostgreSQL + pgvector +Requires PostgreSQL + pgvector. """ from __future__ import annotations