- [pytest]
- testpaths = tests
- python_files = test_*.py
- # 严格模式:异步用例必须显式标 @pytest.mark.asyncio,
- # 避免「写了个 async def 但忘了标,pytest 静默跳过」这类假绿
- asyncio_mode = strict
- asyncio_default_fixture_loop_scope = function
- addopts = -q --tb=short
- filterwarnings =
- ignore::DeprecationWarning
|