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 53f6e91 commit 24ed3b3Copy full SHA for 24ed3b3
docs/testing.rst
@@ -537,6 +537,12 @@ basis, the TestClient object can be used directly::
537
A full list of the utilities provided can be found at the
538
:data:`api reference <aiohttp.test_utils>`
539
540
+For end-to-end client code that talks to an external service, it is
541
+recommended to run a small fake server rather than patching private aiohttp
542
+internals. The ``examples/fake_server.py`` demo shows such an approach: start
543
+a local :class:`~aiohttp.web.Application`, point a custom resolver at it, and
544
+exercise the client against that controlled endpoint.
545
+
546
547
Testing API Reference
548
---------------------
0 commit comments