]> git.ipfire.org Git - thirdparty/httpx.git/commit
Refactor tests to use `MockTransport(<handler_function>)` (#1281)
authorTom Christie <tom@tomchristie.com>
Sat, 12 Sep 2020 10:16:10 +0000 (11:16 +0100)
committerGitHub <noreply@github.com>
Sat, 12 Sep 2020 10:16:10 +0000 (11:16 +0100)
commitc2afd2d9bfc20864f94ab040712960ebc2cda81b
tree8baad6c61002beeded08ccda4b9de85bb4009f2d
parent8a5050ea41dffe7ca1b1fc95122504eb89d0471d
Refactor tests to use `MockTransport(<handler_function>)` (#1281)

* Support Response(content=<bytes iterator>)

* Update test for merged master

* Add MockTransport for test cases

* Use MockTransport for redirect tests

* Reduce change footprint

* Reduce change footprint

* Clean up headers slightly

* Update requirements.txt

Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
requirements.txt
tests/client/test_cookies.py
tests/client/test_headers.py
tests/client/test_queryparams.py
tests/client/test_redirects.py
tests/test_multipart.py
tests/utils.py