From e1e82a94f4be3dabddb567e76bfc1fd3333ee93f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Hells=C3=A9n?= Date: Sun, 15 Feb 2026 21:07:27 +0100 Subject: [PATCH] Use 4 parallel workers for tests and add pytest-xdist to dev dependencies --- pyproject.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 12438de..4c61ee9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", ]