Skip to content

Commit

Permalink
remove ifremer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ocefpaf committed Oct 13, 2023
1 parent 62ca954 commit d07a148
Showing 1 changed file with 2 additions and 34 deletions.
36 changes: 2 additions & 34 deletions tests/test_fetchers.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,53 +14,21 @@ def glider_grab():

def test_variables(glider_grab):
expected = [
"pressure",
"latitude",
"longitude",
"pressure",
"profile_id",
"salinity",
"temperature",
"time",
]
assert sorted(glider_grab.fetcher.variables) == sorted(expected)


# As above for ifremer ERDDAP


@pytest.fixture
@pytest.mark.web
def glider_grab_ifr():
g = GliderDataFetcher("http://www.ifremer.fr/erddap")
g.fetcher.dataset_id = "OceanGlidersGDACTrajectories"
yield g


def test_variables_ifr(glider_grab_ifr):
expected = [
"latitude",
"longitude",
"PRES",
"PSAL",
"TEMP",
"time",
]
assert sorted(glider_grab_ifr.fetcher.variables) == sorted(expected)


def test_standardise_variables_ioos():
glider_grab = GliderDataFetcher()
glider_grab.fetcher.dataset_id = "whoi_406-20160902T1700"
df = glider_grab.to_pandas()
variables = df.columns
for var in variables:
assert var in server_parameter_rename.values()


def test_standardise_variables_ifremer():
glider_grab = GliderDataFetcher("http://www.ifremer.fr/erddap")
glider_grab.fetcher.dataset_id = "OceanGlidersGDACTrajectories"
glider_grab.query(-90, 90, -180, 180, "2015-09-20", "2015-09-27")
df = glider_grab.to_pandas()
variables = df.columns
for var in variables:
assert var in server_parameter_rename.values()

0 comments on commit d07a148

Please sign in to comment.