Fedir Zadniprovskyi 2024-09-22
fix: pytest-asyncio fixture scope warnings
@c844ec47ff3e1daeb1dad81b0226a672209f4ad2
pyproject.toml
--- pyproject.toml
+++ pyproject.toml
@@ -98,3 +98,6 @@
 # https://github.com/DetachHead/basedpyright?tab=readme-ov-file#pre-commit-hook
 venvPath = "."
 venv = ".venv"
+
+[tool.pytest.ini_options]
+asyncio_default_fixture_loop_scope = "function" # this fixes pytest warning
Add a comment
List