Skip to content

Commit

Permalink
Set the asyncio_default_fixture_loop_scope pytest-asyncio option
Browse files Browse the repository at this point in the history
I think the fixtures should be within the same scope throughout the
tests, hence session.
  • Loading branch information
pgjones committed Nov 14, 2024
1 parent 2473a04 commit a22fd3d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ warn_unused_ignores = true

[tool.pytest.ini_options]
addopts = "--no-cov-on-fail --showlocals --strict-markers"
asyncio_default_fixture_loop_scope = "session"
asyncio_mode = "auto"
testpaths = ["tests"]

Expand Down

0 comments on commit a22fd3d

Please sign in to comment.