httpx/tests
Tom Christie b43af721cd
Treat warnings as errors (#1687)
* Treat warnings as errors

* Defensive programming in Client.__del__ to avoid possible warnings on partially initialized instances

* Linting

* Ignore linting getattr errors in __del__

* getattr requires a default

* Tighten up closing of auth_flow generators

* Switch multipart test to open file in a context manager

* Ignore warnings on uvicorn

* Drop -Werror from addopts

* Warings specified entirely in 'filterwarnings' section

* Use ssl.PROTOCOL_TLS_CLIENT instead of deprecated ssl.PROTOCOL_TLS

* Push 'check_hostname = False' above 'context.verify_mode = ssl.CERT_NONE'

* Introduce set_minimum_tls_version_1_2 compatible across different python versions

* Commenting

* Add missing annotation

* Exclude _compat from coverage

Co-authored-by: Joe <nigelchiang@outlook.com>
Co-authored-by: jianghang <jianghang@didiglobal.com>
2021-06-16 15:34:12 +01:00
..
client Perform port normalization for http, https, ws, wss, and ftp schemes (#1603) 2021-04-27 14:06:23 +01:00
fixtures Use relative tests directory references (#1052) 2020-07-16 16:28:31 +02:00
models Update brotli support to use the brotlicffi package (#1605) 2021-04-28 10:09:29 +01:00
__init__.py Drop RedirectLoop exception (#819) 2020-02-24 10:09:52 +00:00
common.py Use relative tests directory references (#1052) 2020-07-16 16:28:31 +02:00
concurrency.py Increase test coverage - take 2 (#1012) 2020-06-02 10:24:45 +01:00
conftest.py 👷 Add Python 3.10 beta to the CI (#1682) 2021-06-15 11:59:30 +01:00
test_api.py Seperate content=... and data=... parameters (#1266) 2020-09-15 13:36:10 +01:00
test_asgi.py Transport API (#1522) 2021-03-24 12:36:34 +00:00
test_auth.py Add support for sync-specific or async-specific auth flows (#1217) 2020-09-09 14:37:20 +01:00
test_config.py Add keepalive_expiry to Limits config (#1398) 2020-11-25 15:32:37 +00:00
test_content.py Prefer Content-Length over Transfer-Encoding: chunked for content=<file-like> cases. (#1619) 2021-04-30 10:40:42 +01:00
test_decoders.py Update brotli support to use the brotlicffi package (#1605) 2021-04-28 10:09:29 +01:00
test_exceptions.py Support HTTPCore 0.13 (#1588) 2021-04-21 14:43:18 +01:00
test_exported_members.py Add exported members test (#1179) 2020-08-15 12:24:26 +02:00
test_multipart.py Treat warnings as errors (#1687) 2021-06-16 15:34:12 +01:00
test_status_codes.py Escalate 0.17 deprecation warnings to becoming fully deprecated. (#1597) 2021-04-26 11:03:11 +01:00
test_timeouts.py Version 0.15.0 (#1301) 2020-09-22 11:44:28 +01:00
test_utils.py Drop request.timer attribute. (#1249) 2020-09-07 09:06:14 +01:00
test_wsgi.py Handle default ports in WSGITransport (#1469) 2021-02-16 13:33:17 +01:00
utils.py Add httpx.MockTransport() (#1401) 2021-01-06 11:04:26 +00:00