Skip to content

Commit

Permalink
Add link to anyio backend options in testclient docs
Browse files Browse the repository at this point in the history
  • Loading branch information
uSpike committed Jun 13, 2021
1 parent efbe6a1 commit 6208ca5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/testclient.md
Expand Up @@ -35,7 +35,8 @@ case you should use `client = TestClient(app, raise_server_exceptions=False)`.

`TestClient.async_backend` is a dictionary which allows you to set the options
for the backend used to run tests. These options are passed to
`anyio.start_blocking_portal()`. By default, `asyncio` is used.
`anyio.start_blocking_portal()`. See the [anyio documentation](https://anyio.readthedocs.io/en/stable/basics.html#backend-options)
for more information about backend options. By default, `asyncio` is used.

To run `Trio`, set `async_backend["backend"] = "trio"`, for example:

Expand Down

0 comments on commit 6208ca5

Please sign in to comment.