Chore: Add a shared test support layer

All four Django apps have test code in common, but the only place to put it
was the documents app's own tests package, so paperless, paperless_ai and
paperless_mail each reached across an app boundary to import helpers and
relied on fixtures that were only defined for the documents test path.

This adds a root src/conftest.py holding the fixtures every app needs and an
new src/paperless_testing package for shared helpers a test names
This commit is contained in:
stumpylog authored and GitHub committed 2026-09-18 09:40:48 -07:00
1 parent 39b978dfe0
commit f0ac69e375
5 files changed
+45 -26

No files matched your search

+3
View File
@@ -317,6 +317,7 @@ testpaths = [
"src/paperless/tests/",
"src/paperless_mail/tests/",
"src/paperless_ai/tests",
"src/paperless_testing/tests/",
]
[tool.pytest_env]
@@ -336,6 +337,8 @@ omit = [
"manage.py",
"paperless/wsgi.py",
"paperless/auth.py",
"src/paperless_testing/*",
"src/conftest.py",
]
[tool.coverage.report]
exclude_also = [