All tests can be run inside the same event loop by marking them with pytest.mark.asyncio(loop_scope="package")
.
Add the following code to the __init__.py
of the test package:
Note that this marker is not passed down to tests in subpackages. Subpackages constitute their own, separate package.