Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Chore: Ensure the directories have been overridden and created for this test (#9354)

Trenton H670ee6c5b023
diff --git a/src/documents/tests/test_migration_document_pages_count.py b/src/documents/tests/test_migration_document_pages_count.py
index e656bf1b8..902896b8c 100644
--- a/src/documents/tests/test_migration_document_pages_count.py
+++ b/src/documents/tests/test_migration_document_pages_count.py
@@ -4,6 +4,7 @@ from pathlib import Path
from django.conf import settings
+from documents.tests.utils import DirectoriesMixin
from documents.tests.utils import TestMigrations
@@ -14,7 +15,7 @@ def source_path_before(self):
return os.path.join(settings.ORIGINALS_DIR, fname)
-class TestMigrateDocumentPageCount(TestMigrations):
+class TestMigrateDocumentPageCount(DirectoriesMixin, TestMigrations):
migrate_from = "1052_document_transaction_id"
migrate_to = "1053_document_page_count"