chore(pyproject.toml): 配置pytest默认异步io循环作用域为function

为pytest工具添加异步io默认循环作用域的配置项,统一异步测试的循环生命周期
This commit is contained in:
2026-06-20 13:40:15 +08:00
parent 0b995d66c3
commit 7ad2a9ba23
+3
View File
@@ -80,3 +80,6 @@ source = ["pyflowx"]
exclude_lines = ["if TYPE_CHECKING:", "if __name__ == .__main__.:", "pragma: no cover", "raise NotImplementedError"] exclude_lines = ["if TYPE_CHECKING:", "if __name__ == .__main__.:", "pragma: no cover", "raise NotImplementedError"]
fail_under = 100 fail_under = 100
show_missing = true show_missing = true
[tool.pytest.ini_options]
asyncio_default_fixture_loop_scope = "function"