Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,12 @@ basis, the TestClient object can be used directly::
A full list of the utilities provided can be found at the
:data:`api reference <aiohttp.test_utils>`

For end-to-end client code that talks to an external service, it is
recommended to run a small fake server rather than patching private aiohttp
internals. The ``examples/fake_server.py`` demo shows such an approach: start
a local :class:`~aiohttp.web.Application`, point a custom resolver at it, and
exercise the client against that controlled endpoint.


Testing API Reference
---------------------
Expand Down
Loading