Randomize test order

This commit is contained in:
Joakim Hellsén 2026-03-07 06:43:32 +01:00
commit dcd86eff69
Signed by: Joakim Hellsén
SSH key fingerprint: SHA256:/9h/CsExpFp+PRhsfA0xznFx2CGfTT5R/kpuFfUgEQk
6 changed files with 114 additions and 4 deletions

View file

@ -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",