pytest.iniā¢1.03 kB
[tool:pytest]
# Test discovery
testpaths = tests
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# Coverage options
addopts =
--cov=src/shared
--cov-report=html:htmlcov
--cov-report=term-missing
--cov-report=xml:coverage.xml
--cov-fail-under=90
--strict-markers
--strict-config
--tb=short
-v
# Minimum coverage required
cov-fail-under = 90
# Markers for test categorization
markers =
unit: Unit tests (fast, isolated)
integration: Integration tests (slower, may require external services)
slow: Slow tests (database, network, etc.)
encryption: Encryption-related tests
security: Security-related tests
config: Configuration tests
account_manager: Account manager tests
token_manager: Token manager tests
account_router: Account router tests
# Async test configuration
asyncio_mode = auto
# Filter warnings
filterwarnings =
ignore::DeprecationWarning
ignore::PendingDeprecationWarning
ignore:.*unclosed.*:ResourceWarning