Back to Repositories

Quivr Testing: Pytest Unit Test Implementation for Document Processing & LLM Integration

The Quivr testing repository showcases a comprehensive unit testing approach built with pytest, focusing on robust validation of core application components. The test suite includes 17 pytest unit tests covering critical functionality like ODT file processing, document handling, vector search capabilities, and LLM endpoint configurations, ensuring reliable operation of the Quivr application. Qodo Tests Hub provides developers with valuable insights into Quivr's testing patterns by offering detailed analysis of its pytest implementations. Through interactive exploration of test cases, developers can examine real-world examples of file processor testing, document handling validation, and LLM integration testing. This practical exposure helps teams understand and adapt proven testing practices for their own projects.

Path Test Type Language Description
core/tests/processor/docx/test_docx.py
unit
python This pytest unit test verifies DOCX file processing functionality and error handling in the Quivr document processing system.
core/tests/processor/test_default_implementations.py
unit
python This pytest unit test verifies the dynamic creation and configuration of document processor classes in the Quivr core processing module.
core/tests/processor/test_registry.py
unit
python This pytest unit test verifies the processor registry system’s functionality for file handling and processor management in Quivr.
core/tests/processor/test_txt_processor.py
unit
python This pytest unit test verifies text file processing and chunking functionality in the TikTokenTxtProcessor implementation.
core/tests/test_quivr_file.py
unit
python This Python unit test verifies QuivrFile object creation and metadata handling functionality in the Quivr application.
core/tests/test_quivr_rag.py
unit
python This pytest unit test verifies the streaming response functionality and metadata handling of the QuivrQARAGLangGraph implementation.
core/tests/processor/epub/test_epub_processor.py
unit
python This pytest unit test verifies EPUB file processing functionality including content extraction and error handling in the Quivr application.
core/tests/test_config.py
unit
python This Python unit test verifies default configuration initialization and validation for Quivr’s LLM endpoint and retrieval settings.
core/tests/test_chat_history.py
unit
python This pytest unit test verifies ChatHistory class functionality including message management, history retrieval, and conversation pair iteration in the Quivr application.
core/tests/processor/test_simple_txt_processor.py
unit
python This pytest unit test verifies the functionality of text file processing and character-based document splitting in the SimpleTxtProcessor component.