| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- # pytest.ini - pytest configuration
- # Copy to your project root and customize
- [pytest]
- # Test discovery
- testpaths = tests
- python_files = test_*.py *_test.py
- python_classes = Test*
- python_functions = test_*
- # Output options
- addopts =
- -v
- --strict-markers
- --tb=short
- -ra
- # Async mode (pytest-asyncio)
- asyncio_mode = auto
- # Logging
- log_cli = true
- log_cli_level = WARNING
- log_cli_format = %(asctime)s [%(levelname)8s] %(name)s: %(message)s
- # Custom markers
- markers =
- slow: marks tests as slow (deselect with '-m "not slow"')
- integration: marks integration tests
- e2e: marks end-to-end tests
- unit: marks unit tests
- # Warnings
- filterwarnings =
- error
- ignore::DeprecationWarning
- ignore::PendingDeprecationWarning
- # Coverage (pytest-cov)
- # Uncomment to enable by default:
- # addopts = --cov=src --cov-report=term-missing
- # Minimum version
- minversion = 7.0
- # Timeout (pytest-timeout)
- # timeout = 60
- # Parallel execution (pytest-xdist)
- # addopts = -n auto
|