We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5731bd2 commit af3adc5Copy full SHA for af3adc5
docs/source/how-to-guides/index.rst
@@ -0,0 +1,10 @@
1
+=============
2
+How-To Guides
3
4
+
5
+.. toctree::
6
+ :hidden:
7
8
+ uvloop
9
10
+This section of the documentation provides code snippets and recipes to accomplish specific tasks with pytest-asyncio.
docs/source/how-to-guides/uvloop.rst
@@ -0,0 +1,13 @@
+=======================
+How to test with uvloop
+Replace the default event loop policy in your *conftest.py:*
+.. code-block:: python
+ import asyncio
11
+ import uvloop
12
13
+ asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
docs/source/index.rst
@@ -7,6 +7,7 @@ Welcome to pytest-asyncio!
:hidden:
concepts
+ how-to-guides/index
reference/index
support
0 commit comments