diff --git a/tests/test_pygeoogc.py b/tests/test_pygeoogc.py index 0255134..3a10124 100644 --- a/tests/test_pygeoogc.py +++ b/tests/test_pygeoogc.py @@ -124,6 +124,13 @@ def test_byfield(self): assert len(resp[0]["features"]) == 3 +def test_retrysession_head(): + url = "https://httpbin.org/image/jpeg" + session = utils.RetrySession() + resp = session.head(url) + assert resp.headers["Content-length"] == "35588" + + @pytest.mark.filterwarnings("ignore:.*Content metadata*.") class TestWMS: wms_url: str = ServiceURL().wms.gebco