docs/how-to-guides/change_fixture_loop.rst
raw| 1 | =============================================== |
| 2 | How to change the event loop scope of a fixture |
| 3 | =============================================== |
| 4 | The event loop scope of an asynchronous fixture is specified via the *loop_scope* keyword argument to :ref:`pytest_asyncio.fixture <decorators/pytest_asyncio_fixture>`. The following fixture runs in the module-scoped event loop: |
| 5 | |
| 6 | .. include:: change_fixture_loop_example.py |
| 7 | :code: python |