Function
test_for_deprecated_proxy_params
tests/client/test_proxies.py:250–257
· tests/client/test_proxies.py::test_for_deprecated_proxy_params
(proxies, is_valid)
Source from the content-addressed store, hash-verified
| 248 | ], |
| 249 | ) |
| 250 | def test_for_deprecated_proxy_params(proxies, is_valid): |
| 251 | mounts = {key: httpx.HTTPTransport(proxy=value) for key, value in proxies.items()} |
| 252 | |
| 253 | if not is_valid: |
| 254 | with pytest.raises(ValueError): |
| 255 | httpx.Client(mounts=mounts) |
| 256 | else: |
| 257 | httpx.Client(mounts=mounts) |
| 258 | |
| 259 | |
| 260 | def test_proxy_with_mounts(): |
Callers
nothing calls this directly
Tested by
no test coverage detected