Debian Codegraph @

docs/how-to-guides/run_module_tests_in_same_loop.rst

raw
1 =======================================================
2 How to run all tests in a module in the same event loop
3 =======================================================
4 All tests can be run inside the same event loop by marking them with ``pytest.mark.asyncio(loop_scope="module")``.
5 This is easily achieved by adding a `pytestmark` statement to your module.
6
7 .. include:: module_scoped_loop_example.py
8 :code: python