dnscms: add pytest-cov

This commit is contained in:
2026-05-19 04:11:39 +02:00
parent b09ce9808d
commit f7e0200a0a
3 changed files with 68 additions and 0 deletions
+12
View File
@@ -18,6 +18,7 @@ dependencies = [
dev = [
"ruff>=0.15.13,<0.16",
"pytest>=9.0.3,<10",
"pytest-cov>=7.0.0,<8",
"pytest-django>=4.12.0,<5",
"wagtail-factories>=4.4.0,<5",
]
@@ -41,3 +42,14 @@ exclude = ["**/migrations/*.py"]
DJANGO_SETTINGS_MODULE = "dnscms.settings.test"
python_files = ["test_*.py"]
testpaths = ["tests"]
addopts = "--cov=. --cov-report=term-missing"
[tool.coverage.run]
omit = [
"*/migrations/*",
"tests/*",
"manage.py",
"dnscms/settings/*",
"dnscms/wsgi.py",
"dnscms/asgi.py",
]