Use 4 parallel workers for tests and add pytest-xdist to dev dependencies

This commit is contained in:
Joakim Hellsén 2026-02-15 21:07:27 +01:00
commit e1e82a94f4
Signed by: Joakim Hellsén
SSH key fingerprint: SHA256:/9h/CsExpFp+PRhsfA0xznFx2CGfTT5R/kpuFfUgEQk

View file

@ -31,11 +31,13 @@ dev = [
"django-stubs",
"pytest-cov",
"hypothesis[django]",
"pytest-xdist[psutil]>=3.8.0",
]
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "config.settings"
python_files = ["test_*.py", "*_test.py"]
addopts = "-n 4"
filterwarnings = [
"ignore:Parsing dates involving a day of month without a year specified is ambiguous:DeprecationWarning",
]