From a0a0d67233606d6648c5e609ff5e8b3a1c054818 Mon Sep 17 00:00:00 2001 From: Guillaume Maze Date: Wed, 15 Feb 2023 15:09:13 +0100 Subject: [PATCH] Update test_stores.py --- argopy/tests/test_stores.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/argopy/tests/test_stores.py b/argopy/tests/test_stores.py index bbd366f69..90e7063a7 100644 --- a/argopy/tests/test_stores.py +++ b/argopy/tests/test_stores.py @@ -224,25 +224,23 @@ def test_open_mfdataset(self): ) ) - @requires_connected_argovis @safe_to_server_errors def test_open_json(self): - uri = "https://argovis.colorado.edu/catalog/mprofiles/?ids=['6902746_12']" + uri = "http://api.ifremer.fr/argopy/data/ARGO-FULL.json" fs = httpstore(timeout=OPTIONS['api_timeout']) - assert is_list_of_dicts(fs.open_json(uri)) + assert isinstance(fs.open_json(uri), dict) - @requires_connected_argovis @safe_to_server_errors def test_open_mfjson(self): fs = httpstore(timeout=OPTIONS['api_timeout']) uri = [ - "https://argovis.colorado.edu/catalog/mprofiles/?ids=['6902746_%i']" % i - for i in [12, 13] + "http://api.ifremer.fr/argopy/data/ARGO-FULL.json", + "http://api.ifremer.fr/argopy/data/ARGO-BGC.json", ] for method in ["seq", "thread"]: for progress in [True, False]: lst = fs.open_mfjson(uri, method=method, progress=progress) - assert all(is_list_of_dicts(x) for x in lst) + assert is_list_of_dicts(lst) @safe_to_server_errors def test_read_csv(self):