Skip to content

Latest commit

 

History

History
8 lines (7 loc) · 415 Bytes

run_module_tests_in_same_loop.rst

File metadata and controls

8 lines (7 loc) · 415 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(scope="module"). This is easily achieved by adding a pytestmark statement to your module.