Skip to content

Commit

Permalink
ENH: Add a new test for the head method of retry [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
cheginit committed Nov 4, 2022
1 parent 95ca353 commit 63b4513
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_pygeoogc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 63b4513

Please sign in to comment.