Ejemplo n.º 1
0
def test_gdal_open_env_when_proxy_is_set_and_url_with_https(monkeypatch):
    monkeypatch.setitem(os.environ, "TELLURIC_HTTP_PROXY", "http://proxy")
    url = "https://bla.com"
    envs = GeoRaster2.get_gdal_env(url)
    assert envs == {}
Ejemplo n.º 2
0
def test_gdal_open_env_when_proxy_is_not_set_and_url_with_http():
    url = "http://bla.com"
    envs = GeoRaster2.get_gdal_env(url)
    assert envs == {}