A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://pytest-asyncio.readthedocs.io/en/v0.26.0/how-to-guides/change_default_test_loop.html below:

Website Navigation


How to change the default event loop scope of all tests — pytest-asyncio 0.26.0 documentation

How to change the default event loop scope of all tests

The asyncio_default_test_loop_scope configuration option sets the default event loop scope for asynchronous tests. The following code snippets configure all tests to run in a session-scoped loop by default:

[pytest]
asyncio_default_test_loop_scope = session
[tool.pytest.ini_options]
asyncio_default_test_loop_scope = "session"
[tool:pytest]
asyncio_default_test_loop_scope = session

Please refer to asyncio_default_test_loop_scope for other valid scopes.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4