Skip to content

Commit a22fd3d

Browse files
committed
Set the asyncio_default_fixture_loop_scope pytest-asyncio option
I think the fixtures should be within the same scope throughout the tests, hence session.
1 parent 2473a04 commit a22fd3d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ warn_unused_ignores = true
8787

8888
[tool.pytest.ini_options]
8989
addopts = "--no-cov-on-fail --showlocals --strict-markers"
90+
asyncio_default_fixture_loop_scope = "session"
9091
asyncio_mode = "auto"
9192
testpaths = ["tests"]
9293

0 commit comments

Comments
 (0)