Skip to content

Commit

Permalink
Minor improvements to testing docs (#8714)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamsorcerer authored Aug 16, 2024
1 parent 03baa6f commit 8690b0f
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions docs/testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,6 @@ insert ``pytest_plugins = 'aiohttp.pytest_plugin'`` line into



Provisional Status
~~~~~~~~~~~~~~~~~~

The module is a **provisional**.

*aiohttp* has a year and half period for removing deprecated API
(:ref:`aiohttp-backward-compatibility-policy`).

But for :mod:`aiohttp.test_tools` the deprecation period could be reduced.

Moreover we may break *backward compatibility* without *deprecation
period* for some very strong reason.


The Test Client and Servers
~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down Expand Up @@ -76,7 +62,12 @@ Pytest
The :data:`aiohttp_client` fixture available from pytest-aiohttp_ plugin
allows you to create a client to make requests to test your app.

A simple would be::
To run these examples, you need to use `--asyncio-mode=auto` or add to your
pytest config file::

asyncio_mode = auto

A simple test would be::

from aiohttp import web

Expand Down

0 comments on commit 8690b0f

Please sign in to comment.