Fix pytest-coverage setup

This commit is contained in:
Tobias Kunze 2025-12-04 17:18:57 +01:00 committed by Tobias Brunner
parent 7fc85108cf
commit 450fe0949e
Signed by: tobru
SSH key fingerprint: SHA256:kOXg1R6c11XW3/Pt9dbLdQvOJGFAy+B2K6v6PtRWBGQ
7 changed files with 115 additions and 102 deletions

View file

@ -56,10 +56,14 @@ extend_exclude = "src/servala/static/mazer"
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "servala.settings_test"
addopts = "-p no:doctest -p no:pastebin -p no:nose --cov=./ --cov-report=term-missing:skip-covered"
addopts = "-p no:doctest -p no:pastebin -p no:nose --cov=./ --cov-report=term-missing:skip-covered --cov-config=pyproject.toml"
testpaths = "src/tests"
pythonpath = "src"
[tool.coverage.run]
branch = true
omit = ["*/admin.py","*/settings.py","*/wsgi.py", "*/migrations/*", "*/manage.py", "*/__init__.py"]
[tool.bumpver]
current_version = "2025.11.17-0"
version_pattern = "YYYY.0M.0D-INC0"