Chore: Move model factories to the shared test layer

The model factories lived in the documents test package, but three other
apps needed them. The AI, mail and testing suites all reached across an app
boundary to import from documents.tests.factories, which made a private test
package into a shared dependency.

The factories now live in the shared testing package, where cross-app use is
the intended use.
This commit is contained in:
stumpylog authored and GitHub committed 2026-09-18 09:40:48 -07:00
1 parent f0ac69e375
commit 5c6a08bec5
35 files changed
+72 -72

No files matched your search

+1 -1
View File
@@ -10,7 +10,7 @@ from django.contrib.auth import get_user_model
from pytest_django.fixtures import Settings
from rest_framework.test import APIClient
from documents.tests.factories import DocumentFactory
from paperless_testing.factories import DocumentFactory
UserModelT = get_user_model()