Skip to content

Set asyncio_default_fixture_loop_scope in pytest settings #273

@afuetterer

Description

@afuetterer

When running the tests, we get this warning:

python-re3data/.venv/lib/python3.13/site-packages/pytest_asyncio/plugin.py:207: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.
The event loop scope for asynchronous fixtures will default to the fixture caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to function scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session"

We need to set asyncio_default_fixture_loop_scope in the pytest settings to deal with this.

Ref: https://pytest-asyncio.readthedocs.io/en/stable/how-to-guides/change_default_fixture_loop.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: testAdding missing tests or correcting existing tests

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions