Skip to content

Latest commit

 

History

History
8 lines (7 loc) · 420 Bytes

run_module_tests_in_same_loop.rst

File metadata and controls

8 lines (7 loc) · 420 Bytes

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

All tests can be run inside the same event loop by marking them with pytest.mark.asyncio(loop_scope="module"). This is easily achieved by adding a pytestmark statement to your module.