[pytest] # Pytest configuration for ROA2WEB Telegram Bot # Test discovery patterns python_files = test_*.py python_classes = Test* python_functions = test_* # Markers for test categorization markers = unit: Unit tests with mocks (fast, no external dependencies) integration: Integration tests with real backend/database (slow, requires setup) slow: Slow tests that take more than 1 second # Default: skip integration tests unless explicitly requested # Run all tests: pytest # Run only unit tests: pytest -m unit # Run only integration tests: pytest -m integration # Run integration tests: pytest --run-integration addopts = -v --strict-markers --tb=short -m "not integration" # Asyncio configuration asyncio_mode = auto # Coverage options (optional) # --cov=app # --cov-report=html # --cov-report=term-missing