[pytest]
testpaths = tests
# 忽略第三方库的弃用警告
filterwarnings =
    ignore::PendingDeprecationWarning:starlette.*
    # Python 3.14: pytest-asyncio 0.26.0 内部使用已弃用的 asyncio API
    # 上游 issue: https://github.com/pytest-dev/pytest-asyncio/issues/706
    # 待 pytest-asyncio 修复后可移除以下两条过滤
    ignore:'asyncio.get_event_loop_policy' is deprecated and slated for removal in Python 3.16:DeprecationWarning:pytest_asyncio\.plugin
    ignore:'asyncio.set_event_loop_policy' is deprecated and slated for removal in Python 3.16:DeprecationWarning:pytest_asyncio\.plugin
    # 也可以设置异步测试的默认 loop scope
asyncio_default_fixture_loop_scope = function
