pytest.ini 964 B

1234567891011121314151617181920
  1. [pytest]
  2. testpaths = .
  3. asyncio_mode = auto
  4. asyncio_default_fixture_loop_scope = function
  5. filterwarnings =
  6. ignore::DeprecationWarning
  7. ignore::sqlalchemy.exc.SAWarning
  8. # Filter warnings from async mocks - coroutines created by mocks that are
  9. # intentionally not awaited (expected behavior in unit tests)
  10. ignore:coroutine.*was never awaited:RuntimeWarning
  11. # Starlette ≥ 1.1 fires its own StarletteDeprecationWarning at import
  12. # time of starlette.testclient asking us to migrate to ``httpx2``.
  13. # Upstream-internal migration; nothing actionable in Bambuddy and a
  14. # full move to httpx2 is its own change. Match by message text so the
  15. # filter holds regardless of which warning class starlette uses.
  16. ignore:Using .httpx. with .starlette.testclient. is deprecated
  17. markers =
  18. unit: Unit tests (fast, no external deps)
  19. integration: Integration tests (slower, test full API)
  20. slow: Slow tests (skip with -m "not slow")