Use 4 parallel workers for tests and add pytest-xdist to dev dependencies
This commit is contained in:
parent
b08143980c
commit
e1e82a94f4
1 changed files with 2 additions and 0 deletions
|
|
@ -31,11 +31,13 @@ dev = [
|
||||||
"django-stubs",
|
"django-stubs",
|
||||||
"pytest-cov",
|
"pytest-cov",
|
||||||
"hypothesis[django]",
|
"hypothesis[django]",
|
||||||
|
"pytest-xdist[psutil]>=3.8.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
DJANGO_SETTINGS_MODULE = "config.settings"
|
DJANGO_SETTINGS_MODULE = "config.settings"
|
||||||
python_files = ["test_*.py", "*_test.py"]
|
python_files = ["test_*.py", "*_test.py"]
|
||||||
|
addopts = "-n 4"
|
||||||
filterwarnings = [
|
filterwarnings = [
|
||||||
"ignore:Parsing dates involving a day of month without a year specified is ambiguous:DeprecationWarning",
|
"ignore:Parsing dates involving a day of month without a year specified is ambiguous:DeprecationWarning",
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue