]> git.ipfire.org Git - thirdparty/httpx.git/commit
Add `httpx.MockTransport()` (#1401)
authorTom Christie <tom@tomchristie.com>
Wed, 6 Jan 2021 11:04:26 +0000 (11:04 +0000)
committerGitHub <noreply@github.com>
Wed, 6 Jan 2021 11:04:26 +0000 (11:04 +0000)
commit9c7c2ace99ce6732377e18d35bcdca1a8f1d37e4
treef55dab8127452395d4c9825b7b00087dc9d171c4
parent3bf18637c1289575f3cc00467fbde1a34bbdf332
Add `httpx.MockTransport()` (#1401)

* Add httpx.MockTransport

* Add docs on MockTransport

* Add pointer to RESPX

* Add note on pytest-httpx

* Tweak existing docs example to use 'httpx.MockTransport'

Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
13 files changed:
docs/advanced.md
httpx/__init__.py
httpx/_transports/mock.py [new file with mode: 0644]
tests/client/test_async_client.py
tests/client/test_auth.py
tests/client/test_client.py
tests/client/test_cookies.py
tests/client/test_event_hooks.py
tests/client/test_headers.py
tests/client/test_queryparams.py
tests/client/test_redirects.py
tests/test_multipart.py
tests/utils.py