Debian Codegraph @

docs/how-to-guides/run_class_tests_in_same_loop.rst

raw
1 ======================================================
2 How to run all tests in a class 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="class")``.
5 This is easily achieved by using the *asyncio* marker as a class decorator.
6
7 .. include:: class_scoped_loop_example.py
8 :code: python