()
| 357 | monkeypatch.delenv(var, raising=False) |
| 358 | |
| 359 | def apply_proxy_to_conf(): |
| 360 | #apply HTTPS_PROXY env var and set it as global. |
| 361 | cfg = client.Configuration.get_default_copy() |
| 362 | cfg.proxy = os.getenv("HTTPS_PROXY") |
| 363 | cfg.no_proxy = os.getenv("NO_PROXY", "") |
| 364 | client.Configuration.set_default(cfg) |
| 365 | |
| 366 | def test_rest_call_ignores_env(dummy_proxy, monkeypatch): |
| 367 | # HTTPS_PROXY to dummy proxy |
no test coverage detected