type: 收敛测试 schemas 与协议层类型

This commit is contained in:
yml2213
2026-08-30 20:35:08 +08:00
parent 92dc461e52
commit c891ac982e
26 changed files with 1846 additions and 882 deletions
+3 -1
View File
@@ -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):