Chore: Isolate the search index directory in trash-restore tests, they were using a persistent index (#13876)

This commit is contained in:
Trenton H
2026-08-31 14:43:14 +00:00
committed by GitHub
parent 40d09ef309
commit 06e9c1c02b
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -7,9 +7,10 @@ from rest_framework import status
from rest_framework.test import APITestCase
from documents.models import Document
from documents.tests.utils import DirectoriesMixin
class TestTrashAPI(APITestCase):
class TestTrashAPI(DirectoriesMixin, APITestCase):
def setUp(self) -> None:
super().setUp()
@@ -409,6 +409,7 @@ class TestBulkDownloadPermissionChecksRootDocument:
@pytest.mark.django_db
@pytest.mark.usefixtures("_search_index")
class TestTrashRestorePermissionBoundary:
def test_restore_rejects_document_without_delete_permission(
self,