test_should_bypass_proxies_win_registry_ProxyOverride_value() — requests Function Reference
Architecture documentation for the test_should_bypass_proxies_win_registry_ProxyOverride_value() function in test_utils.py from the requests codebase.
Entity Profile
Dependency Diagram
graph TD be195e91_48de_3f09_21b3_37a5e13703ce["test_should_bypass_proxies_win_registry_ProxyOverride_value()"] 5828793e_be5b_8952_37f1_338fd4634a1a["test_utils.py"] be195e91_48de_3f09_21b3_37a5e13703ce -->|defined in| 5828793e_be5b_8952_37f1_338fd4634a1a 1d6ec2dc_3200_1695_ca5e_059140ad2747["Close()"] be195e91_48de_3f09_21b3_37a5e13703ce -->|calls| 1d6ec2dc_3200_1695_ca5e_059140ad2747 style be195e91_48de_3f09_21b3_37a5e13703ce fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_utils.py lines 949–977
def test_should_bypass_proxies_win_registry_ProxyOverride_value(monkeypatch):
"""Tests for function should_bypass_proxies to check if proxy
can be bypassed or not with Windows ProxyOverride registry value ending with a semicolon.
"""
import winreg
class RegHandle:
def Close(self):
pass
ie_settings = RegHandle()
def OpenKey(key, subkey):
return ie_settings
def QueryValueEx(key, value_name):
if key is ie_settings:
if value_name == "ProxyEnable":
return [1]
elif value_name == "ProxyOverride":
return [
"192.168.*;127.0.0.1;localhost.localdomain;172.16.1.1;<-loopback>;"
]
monkeypatch.setenv("NO_PROXY", "")
monkeypatch.setenv("no_proxy", "")
monkeypatch.setattr(winreg, "OpenKey", OpenKey)
monkeypatch.setattr(winreg, "QueryValueEx", QueryValueEx)
assert should_bypass_proxies("http://example.com/", None) is False
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does test_should_bypass_proxies_win_registry_ProxyOverride_value() do?
test_should_bypass_proxies_win_registry_ProxyOverride_value() is a function in the requests codebase, defined in tests/test_utils.py.
Where is test_should_bypass_proxies_win_registry_ProxyOverride_value() defined?
test_should_bypass_proxies_win_registry_ProxyOverride_value() is defined in tests/test_utils.py at line 949.
What does test_should_bypass_proxies_win_registry_ProxyOverride_value() call?
test_should_bypass_proxies_win_registry_ProxyOverride_value() calls 1 function(s): Close.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free