Skip to content

Commit 6bd21a0

Browse files
committed
also test ncCF
1 parent 10038d3 commit 6bd21a0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/test_url_handling.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ def test__sort_url_undefined_query():
7070

7171
def test_quoting():
7272
"""Test quoting query params for ERDDAP 2.23."""
73-
url = 'https://opendap.co-ops.nos.noaa.gov/erddap/tabledap/IOOS_Hourly_Height_Verified_Water_Level.csvp?WL_VALUE,time&BEGIN_DATE="2016-10-04"&END_DATE="2016-10-12"&DATUM="MSL"&STATION_ID="8729840"'
74-
data = urlopen(url)
75-
assert data is not None
73+
for response in ("csvp", "ncCF"):
74+
url = f'https://opendap.co-ops.nos.noaa.gov/erddap/tabledap/IOOS_Hourly_Height_Verified_Water_Level.{response}?WL_VALUE,time&BEGIN_DATE="2016-10-04"&END_DATE="2016-10-12"&DATUM="MSL"&STATION_ID="8729840"'
75+
data = urlopen(url)
76+
assert data is not None

0 commit comments

Comments
 (0)