[pytest]
testpaths = tests
python_files = test_*.py
python_classes = Test*
python_functions = test_*
addopts =
--cov=nomy_data_models
--cov-report=term-missing
--cov-report=xml:coverage.xml
--cov-report=html:coverage_html
--verbose
markers =
unit: Unit tests
integration: Integration tests
slow: Slow running tests
# Configure coverage
[coverage:run]
source = nomy_data_models
omit =
*/tests/*
*/venv/*
*/.venv/*
*/setup.py
*/conftest.py
[coverage:report]
exclude_lines =
pragma: no cover
def __repr__
raise NotImplementedError
if __name__ == .__main__.:
pass
raise ImportError
except ImportError
raise ValueError
except ValueError
^\s*if TYPE_CHECKING:
fail_under = 100
show_missing = True