Skip to content

Commit c6cc7c4

Browse files
committed
Update test_sodapro.py
1 parent 02cf2e2 commit c6cc7c4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/iotools/test_sodapro.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ def test_get_cams(requests_mock, testfile, index, columns, values, dtypes,
253253

254254
def test_get_cams_bad_request(requests_mock):
255255
"""Test that a the correct errors/warnings ares raised for invalid
256-
requests inputs. Also tests if the specified server url gets used"""
256+
requests inputs. Also tests if the specified url gets used"""
257257

258258
# Subset of an xml file returned for errornous requests
259259
mock_response_bad_text = """<?xml version="1.0" encoding="utf-8"?>
@@ -281,7 +281,7 @@ def test_get_cams_bad_request(requests_mock):
281281
time_ref='TST',
282282
verbose=False,
283283
time_step='1h',
284-
server='pro.soda-is.com')
284+
url='pro.soda-is.com')
285285
# Test if value error is raised if incorrect identifier is specified
286286
with pytest.raises(ValueError, match='Identifier must be either'):
287287
_ = sodapro.get_cams(
@@ -291,7 +291,7 @@ def test_get_cams_bad_request(requests_mock):
291291
longitude=12.5251,
292292
293293
identifier='test', # incorrect identifier
294-
server='pro.soda-is.com')
294+
url='pro.soda-is.com')
295295
# Test if value error is raised if incorrect time step is specified
296296
with pytest.raises(ValueError, match='Time step not recognized'):
297297
_ = sodapro.get_cams(
@@ -302,4 +302,4 @@ def test_get_cams_bad_request(requests_mock):
302302
303303
identifier='mcclear',
304304
time_step='test', # incorrect time step
305-
server='pro.soda-is.com')
305+
url='pro.soda-is.com')

0 commit comments

Comments
 (0)