Skip to content

Commit 7730ef8

Browse files
authored
docs: specify how asyncio's mode can be set
1 parent 007e8ec commit 7730ef8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docs/source/concepts.rst

+6-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@ You can think of `event_loop` as an autouse fixture for async tests.
1616
Test discovery modes
1717
====================
1818

19-
Pytest-asyncio provides two modes for test discovery, *strict* and *auto*.
19+
Pytest-asyncio provides two modes for test discovery, *strict* and *auto*. This can be set through Pytest's ``--asyncio-mode`` command line flag, or through the configuration file:
20+
21+
.. code-block:: toml
22+
23+
[tool.pytest.ini_options]
24+
asyncio_mode = "auto" # or "strict"
2025
2126
2227
Strict mode

0 commit comments

Comments
 (0)