docs(testclient): change requests url to httpx url (#1937)

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
This commit is contained in:
arl 2022-11-05 12:17:32 -04:00 committed by GitHub
parent a45027209a
commit bf5d7357b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ with open("example.txt", "rb") as f1:
response = client.post("/form", files=files)
```
For more information you can check the `requests` [documentation](https://requests.readthedocs.io/en/master/user/advanced/).
For more information you can check the `httpx` [documentation](https://www.python-httpx.org/advanced/).
By default the `TestClient` will raise any exceptions that occur in the
application. Occasionally you might want to test the content of 500 error