mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-11-19 12:15:20 +00:00
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:
1 parent
39b978dfe0
commit
f0ac69e375
5 files changed
+45
-26
No files matched your search
@@ -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 = [
|
||||
|
||||
Reference in new issue
Block a user