Set a stricter set of checks for pytest, and try changing how we distribute tests to workers

This commit is contained in:
Trenton Holmes
2026-01-24 19:53:00 -08:00
parent 55d06fda03
commit c08b025423

View File

@@ -265,6 +265,11 @@ skip = "src-ui/src/locale/*,src-ui/pnpm-lock.yaml,src-ui/e2e/*,src/paperless_mai
minversion = "9.0" minversion = "9.0"
pythonpath = [ "src" ] pythonpath = [ "src" ]
strict_config = true
strict_markers = true
strict_parametrization_ids = true
strict_xfail = true
testpaths = [ testpaths = [
"src/documents/tests/", "src/documents/tests/",
"src/paperless/tests/", "src/paperless/tests/",
@@ -283,8 +288,9 @@ addopts = [
"--cov-report=xml", "--cov-report=xml",
"--numprocesses=auto", "--numprocesses=auto",
"--maxprocesses=16", "--maxprocesses=16",
"--quiet", "--dist=loadscope",
"--durations=50", "--durations=50",
"--durations-min=0.5",
"--junitxml=junit.xml", "--junitxml=junit.xml",
"-o", "-o",
"junit_family=legacy", "junit_family=legacy",