(proxies, is_valid)
| 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(): |