mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-08-12 00:19:48 +00:00
Fixes a corrupted index not being handled by whoosh.create_in (#5950)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import shutil
|
||||
import tempfile
|
||||
from collections.abc import Iterable
|
||||
from pathlib import Path
|
||||
from random import randint
|
||||
|
||||
from django.contrib.admin.models import LogEntry
|
||||
@@ -396,7 +397,7 @@ class TestDocumentConsumptionFinishedSignal(TestCase):
|
||||
mime_type="application/pdf",
|
||||
)
|
||||
|
||||
self.index_dir = tempfile.mkdtemp()
|
||||
self.index_dir = Path(tempfile.mkdtemp())
|
||||
# TODO: we should not need the index here.
|
||||
override_settings(INDEX_DIR=self.index_dir).enable()
|
||||
|
||||
|
Reference in New Issue
Block a user