mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-06-07 22:29:45 +00:00
12eb9b9abf
Tests that create or consume documents trigger the search index signal handler, which calls get_backend().add_or_update() against settings.INDEX_DIR. This class only inherited SampleDirMixin, leaving INDEX_DIR pointing at the default non-existent path and causing FileNotFoundError in CI. Added _search_index fixture to documents/tests/conftest.py: creates a temp index directory, overrides INDEX_DIR, and resets the backend singleton. Applied via @pytest.mark.usefixtures on the class. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>