[pytest] # Pytest Configuration # Test discovery patterns python_files = test_*.py python_classes = Test* python_functions = test_* # Test paths testpaths = tests # Coverage configuration addopts = --verbose --strict-markers --tb=short --cov=. --cov-report=html:htmlcov --cov-report=xml:coverage.xml --cov-report=term-missing --cov-branch --cov-fail-under=80 -p no:warnings # Coverage exclusions [coverage:run] source = . omit = */tests/* */test_*.py */__pycache__/* */venv/* */env/* */migrations/* */alembic/* */scripts/* setup.py conftest.py [coverage:report] precision = 2 show_missing = True skip_covered = False exclude_lines = pragma: no cover def __repr__ raise AssertionError raise NotImplementedError if __name__ == .__main__.: if TYPE_CHECKING: @abstractmethod @abc.abstractmethod [coverage:html] directory = htmlcov # Markers markers = unit: Unit tests integration: Integration tests e2e: End-to-end tests slow: Slow running tests asyncio: Async tests security: Security tests performance: Performance tests # Asyncio configuration asyncio_mode = auto # Timeout timeout = 300 timeout_method = thread