Skip to content

Commit 5b2e9e1

Browse files
authored
Set asyncio_default_fixture_loop_scope to silence a bunch of warnings (#1668)
Not setting this is deprecated (see pytest-dev/pytest-asyncio#924). We don't even use async fixtures AFAICT so it doesn't impact us but it still emits a lot of useless warnings
1 parent 135b771 commit 5b2e9e1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

api/pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,12 @@ requests = "*"
108108
[tool.poetry.group.tox.dependencies]
109109
tox = "*"
110110

111-
112111
[tool.poetry.group.dev.dependencies]
113112
flask-shell-ipython = "^0.5.1"
114113

114+
[tool.pytest.ini_options]
115+
asyncio_default_fixture_loop_scope = "function"
116+
115117
[build-system]
116118
requires = ["poetry-core"]
117119
build-backend = "poetry.core.masonry.api"

0 commit comments

Comments
 (0)