pytest.ini 342 B

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