dnscms: add pytest-cov
This commit is contained in:
@@ -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",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user