mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-06 07:55:10 +00:00
test: delete slow, timing-based and redundant tests
This commit is contained in:
@@ -62,13 +62,6 @@ def test_proxied_lookup_ignores_env_proxy(monkeypatch):
|
||||
assert settings["proxies"]["https"] == "http://127.0.0.1:2"
|
||||
|
||||
|
||||
def test_local_lookup_keeps_env_proxy(monkeypatch):
|
||||
monkeypatch.setenv("HTTPS_PROXY", "http://127.0.0.1:1")
|
||||
sess = ip_info.lookup_session(None)
|
||||
settings = sess.merge_environment_settings("https://ipinfo.io/json", {}, None, None, None)
|
||||
assert settings["proxies"]["https"] == "http://127.0.0.1:1"
|
||||
|
||||
|
||||
def test_get_ip_info_collects_connection_errors_only(monkeypatch):
|
||||
def refused(session):
|
||||
raise OSError("refused")
|
||||
|
||||
Reference in New Issue
Block a user