Randomize test order
This commit is contained in:
parent
d87341d729
commit
dcd86eff69
6 changed files with 114 additions and 4 deletions
|
|
@ -22,7 +22,7 @@ dependencies = [
|
|||
]
|
||||
|
||||
[dependency-groups]
|
||||
dev = ["djlint", "pytest"]
|
||||
dev = ["djlint", "pytest", "pytest-randomly", "pytest-xdist"]
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry-core>=1.0.0"]
|
||||
|
|
@ -87,6 +87,7 @@ lint.ignore = [
|
|||
"tests/*" = ["S101", "D103", "PLR2004"]
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
addopts = "-n 5 --dist loadfile"
|
||||
filterwarnings = [
|
||||
"ignore::bs4.GuessedAtParserWarning",
|
||||
"ignore:functools\\.partial will be a method descriptor in future Python versions; wrap it in staticmethod\\(\\) if you want to preserve the old behavior:FutureWarning",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue