We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c56715 commit 6d81b02Copy full SHA for 6d81b02
1 file changed
docs/testing.rst
@@ -490,6 +490,12 @@ basis, the TestClient object can be used directly::
490
A full list of the utilities provided can be found at the
491
:mod:`api reference <aiohttp.test_utils>`
492
493
+For end-to-end client code that talks to an external service, it is
494
+recommended to run a small fake server rather than patching private aiohttp
495
+internals. The ``examples/fake_server.py`` demo shows such an approach: start
496
+a local :class:`~aiohttp.web.Application`, point a custom resolver at it, and
497
+exercise the client against that controlled endpoint.
498
+
499
500
Testing API Reference
501
---------------------
0 commit comments