diff options
| author | Olivier Tabone <olivier.tabone@ripplemotion.fr> | 2023-08-04 09:14:19 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-08-30 06:12:25 +0200 |
| commit | 3f8dbe267d35f0219277f0fe2d79915a4fb2b045 (patch) | |
| tree | b818499facc91df69c936e746d93c6081c776e41 /docs/topics/testing | |
| parent | 1ac397674b2f64d48e66502a20b9d9ca6bfb579a (diff) | |
Fixed #34757 -- Added support for following redirects to AsyncClient.
Diffstat (limited to 'docs/topics/testing')
| -rw-r--r-- | docs/topics/testing/tools.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/topics/testing/tools.txt b/docs/topics/testing/tools.txt index 2378ff4ec1..a9373ff108 100644 --- a/docs/topics/testing/tools.txt +++ b/docs/topics/testing/tools.txt @@ -2032,7 +2032,6 @@ test client, with the following exceptions: * In the initialization, arbitrary keyword arguments in ``defaults`` are added directly into the ASGI scope. -* The ``follow`` parameter is not supported. * Headers passed as ``extra`` keyword arguments should not have the ``HTTP_`` prefix required by the synchronous client (see :meth:`Client.get`). For example, here is how to set an HTTP ``Accept`` header: @@ -2046,6 +2045,10 @@ test client, with the following exceptions: The ``headers`` parameter was added. +.. versionchanged:: 5.0 + + Support for the ``follow`` parameter was added to the ``AsyncClient``. + Using ``AsyncClient`` any method that makes a request must be awaited:: async def test_my_thing(self): |
