Fix pytest-coverage setup
This commit is contained in:
parent
7fc85108cf
commit
450fe0949e
7 changed files with 115 additions and 102 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue