From d8650dead192a1bc70fda142840d59a21b997d28 Mon Sep 17 00:00:00 2001 From: Michael Seifert Date: Wed, 8 Nov 2023 10:39:28 +0100 Subject: [PATCH] [docs] Link to auto mode concept from marker reference. Signed-off-by: Michael Seifert --- docs/source/reference/markers/index.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/source/reference/markers/index.rst b/docs/source/reference/markers/index.rst index 83bcbbc0..8cf2b279 100644 --- a/docs/source/reference/markers/index.rst +++ b/docs/source/reference/markers/index.rst @@ -15,7 +15,7 @@ Multiple async tests in a single class or module can be marked using |pytestmark .. include:: function_scoped_loop_pytestmark_strict_mode_example.py :code: python -The ``pytest.mark.asyncio`` marker can be omitted entirely in *auto* mode, where the *asyncio* marker is added automatically to *async* test functions. +The ``pytest.mark.asyncio`` marker can be omitted entirely in |auto mode|_ where the *asyncio* marker is added automatically to *async* test functions. By default, each test runs in it's own asyncio event loop. Multiple tests can share the same event loop by providing a *scope* keyword argument to the *asyncio* mark. @@ -37,5 +37,7 @@ Package-scoped loops do not work in `namespace packages.