You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pytest-asyncio users with a session-scoped event loop would have to add pytestmark = pytest.mark.asyncio(scope="session") for every package and subpackage to address the deprecation of event_loop fixture overrides (see discussion in #670).
This solution only applies to users that actually use test packages. Users that don't use test packages would have to add __init__.py files first or add pytestmark = pytest.mark.asyncio(scope="session") to each test module.
The goal of this issue is to have a more convenient way to configure session-scoped loops. Possible solutions:
What about the suggested collection hook solution in that issue? Hooks are bit weird, but copying a snippet from the documentation isn't the end of the world?
Pytest-asyncio users with a session-scoped event loop would have to add
pytestmark = pytest.mark.asyncio(scope="session")
for every package and subpackage to address the deprecation of event_loop fixture overrides (see discussion in #670).This solution only applies to users that actually use test packages. Users that don't use test packages would have to add
__init__.py
files first or addpytestmark = pytest.mark.asyncio(scope="session")
to each test module.The goal of this issue is to have a more convenient way to configure session-scoped loops. Possible solutions:
a configuration fixturea config option to set the default loop scope (mentioned previously, but I cannot find the reference)The text was updated successfully, but these errors were encountered: