Skip to content

Commit

Permalink
fix for test data with new erddap
Browse files Browse the repository at this point in the history
  • Loading branch information
gmaze committed Aug 21, 2024
1 parent 0578b05 commit 1ab75e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions argopy/tests/helpers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,14 @@ def _xfail(name, msg):
log.debug("Checking which Erddap dataset are available (eg: core, bgc, ref, index)")
with serve_mocked_httpserver() as s: # Use the mocked http server
with set_options(erddap=mocked_server_address):
res = erddap_ds_exists(["ArgoFloats", "ArgoFloats-synthetic-BGC", "ArgoFloats-ref", "ArgoFloats-index"])
res = erddap_ds_exists(["ArgoFloats", "ArgoFloats-synthetic-BGC", "ArgoFloats-reference", "ArgoFloats-index"])
DSEXISTS = res[0]
DSEXISTS_bgc = res[1]
DSEXISTS_ref = res[2]
DSEXISTS_index = res[3]
# DSEXISTS = erddap_ds_exists(ds="ArgoFloats")
# DSEXISTS_bgc = erddap_ds_exists(ds="ArgoFloats-bio")
# DSEXISTS_ref = erddap_ds_exists(ds="ArgoFloats-ref")
# DSEXISTS_ref = erddap_ds_exists(ds="ArgoFloats-reference")
# DSEXISTS_index = erddap_ds_exists(ds="ArgoFloats-index")
else:
DSEXISTS = False
Expand Down
7 changes: 4 additions & 3 deletions cli/citests_httpdata_manager
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ class UriRegistry(UserList):
elif overwrite:
self.delete(entry)
super().append(entry)
log.debug("commit: %s" % entry['uri'])
return self

def delete(self, entry):
Expand Down Expand Up @@ -435,8 +436,8 @@ class Lister:
}
requests_ref = {
"region": [
[-70, -65, 35.0, 40.0, 0, 10.0],
[-70, -65, 35.0, 40.0, 0, 10.0, "2012-01-01", "2012-12-31"],
[-25, -10, 36, 40, 0, 10.],
[-25, -10, 36, 40, 0, 10., '20180101', '20190101'],
]
}
requests_seq = {"phy": requests_phy, "ref": requests_ref}
Expand Down Expand Up @@ -507,7 +508,7 @@ class Lister:
)
this_URI.commit(
self.dfile(
"https://erddap.ifremer.fr/erddap/info/ArgoFloats-ref/index.json",
"https://erddap.ifremer.fr/erddap/info/ArgoFloats-reference/index.json",
"json",
)
)
Expand Down

0 comments on commit 1ab75e7

Please sign in to comment.