youtube-summarizer/pytest.ini

43 lines
1.1 KiB
INI

[tool:pytest]
# Test discovery
testpaths = backend/tests
python_files = test_*.py *_test.py
python_classes = Test*
python_functions = test_*
# Output options
addopts =
-v
--tb=short
--strict-markers
--strict-config
--disable-warnings
# Markers
markers =
unit: Unit tests (fast, isolated, no external dependencies)
integration: Integration tests (may use database, external services)
api: API endpoint tests
frontend: Frontend component tests
e2e: End-to-end tests (full application workflow)
performance: Performance and load tests
slow: Slow tests (may take more than 5 seconds)
auth: Authentication-related tests
pipeline: Pipeline and workflow tests
database: Database-dependent tests
network: Tests requiring network access
asyncio: Async tests requiring asyncio
# Async support
asyncio_mode = auto
# Timeout (in seconds)
timeout = 300
# Minimum coverage percentage
# This can be overridden by command line options
filterwarnings =
ignore::DeprecationWarning
ignore::PendingDeprecationWarning
ignore::UserWarning:jose.*
ignore::UserWarning:passlib.*