From 7b56de7cab0a3c71aa1d94cd8131bf39db85aaa2 Mon Sep 17 00:00:00 2001 From: Filipe Fernandes Date: Wed, 4 Oct 2023 11:23:20 -0300 Subject: [PATCH] fix httpx status check change --- requirements.txt | 2 +- tests/test_erddapy.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 5ac97ab3..e8979011 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ -httpx +httpx>=0.25.0 pandas>=0.25.2,<3 pytz diff --git a/tests/test_erddapy.py b/tests/test_erddapy.py index 02c408e1..1d49d23e 100644 --- a/tests/test_erddapy.py +++ b/tests/test_erddapy.py @@ -91,7 +91,7 @@ def test_erddap2_10(): e = ERDDAP(server="http://erddap.ioos.us/erddap/") url = e.get_search_url(search_for="NOAA", response="csv") r = httpx.head(url) - assert r.raise_for_status() is None + assert r.status_code == 200 def test__griddap_check_constraints():