We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent daf6908 commit 1a75eefCopy full SHA for 1a75eef
tests/utils/test_proxy_rotation.py
@@ -72,7 +72,7 @@ def test_is_ipv4_address():
72
assert is_ipv4_address("no-address") is False
73
74
75
-def test_parse_or_search_proxy_success():
+def test_parse_or_search_proxy_success(monkeypatch):
76
proxy = {
77
"server": "192.168.1.1:8080",
78
"username": "username",
@@ -91,6 +91,7 @@ def test_parse_or_search_proxy_success():
91
"timeout": 10.0,
92
},
93
}
94
+ monkeypatch.setattr("scrapegraphai.utils.proxy_rotation._search_proxy", lambda proxy: {"server": "dummy_proxy:8080"})
95
96
found_proxy = parse_or_search_proxy(proxy_broker)
97
0 commit comments