Skip to content

Latest commit

 

History

History
8 lines (7 loc) · 411 Bytes

run_class_tests_in_same_loop.rst

File metadata and controls

8 lines (7 loc) · 411 Bytes

How to run all tests in a class in the same event loop

All tests can be run inside the same event loop by marking them with pytest.mark.asyncio(scope="class"). This is easily achieved by using the asyncio marker as a class decorator.