chore(pyproject.toml): 配置pytest默认异步io循环作用域为function
为pytest工具添加异步io默认循环作用域的配置项,统一异步测试的循环生命周期
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user