Skip to content

Commit faa7dd0

Browse files
committed
py(pytest): Configure asyncio mode and filter deprecation warning
why: Enable proper async test support with strict mode. what: - Set asyncio_mode = "strict" for explicit async marking - Set asyncio_default_fixture_loop_scope = "function" - Filter pytest-asyncio deprecation warning for loop scope
1 parent 146c404 commit faa7dd0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎pyproject.toml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,10 @@ testpaths = [
247247
]
248248
filterwarnings = [
249249
"ignore:The frontend.Option(Parser)? class.*:DeprecationWarning::",
250+
"ignore:The configuration option \"asyncio_default_fixture_loop_scope\" is unset.:DeprecationWarning:pytest_asyncio.plugin",
250251
]
252+
asyncio_mode = "strict"
253+
asyncio_default_fixture_loop_scope = "function"
251254

252255
[tool.pytest-watcher]
253256
now = true

0 commit comments

Comments
 (0)