Skip to content

Commit

Permalink
Minor improvements to testing docs (#8714)
Browse files Browse the repository at this point in the history
(cherry picked from commit 8690b0f)
  • Loading branch information
Dreamsorcerer authored and patchback[bot] committed Aug 16, 2024
1 parent 1f69dfe commit dc5b979
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 dc5b979

Please sign in to comment.