type: 收敛测试 schemas 与协议层类型
This commit is contained in:
@@ -80,7 +80,9 @@ class TestDouyuProxyMode:
|
||||
|
||||
# 每任务取新代理:_client 也会再 fetch 一次(客户端构造即取代理)
|
||||
fake.fetch_new_proxy.return_value = "http://10.0.0.3:3128"
|
||||
assert runner._proxies_for_task()["http"] == "http://10.0.0.3:3128"
|
||||
refreshed = runner._proxies_for_task()
|
||||
assert refreshed is not None
|
||||
assert refreshed["http"] == "http://10.0.0.3:3128"
|
||||
assert fake.fetch_new_proxy.call_count == 3
|
||||
|
||||
def test_api_mode_failure_falls_back_to_direct(self):
|
||||
|
||||
Reference in New Issue
Block a user