Skip to content

Commit

Permalink
Fix behind EDL tests (#480)
Browse files Browse the repository at this point in the history
  • Loading branch information
JessicaS11 committed Jan 5, 2024
1 parent 486b469 commit 34c36be
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ jobs:

- stage: behind Earthdata
script:
- export NSIDC_LOGIN=$NSIDC_LOGIN
- export EARTHDATA_PASSWORD=$NSIDC_LOGIN
- pytest icepyx/tests/test_behind_NSIDC_API_login.py
1 change: 0 additions & 1 deletion icepyx/tests/ATL06v05_options.json

This file was deleted.

1 change: 1 addition & 0 deletions icepyx/tests/ATL06v06_options.json

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions icepyx/tests/test_behind_NSIDC_API_login.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import json
import os
import pytest

import icepyx as ipx
Expand All @@ -23,6 +24,7 @@ def reg():

@pytest.fixture(scope="module")
def session(reg):
os.environ = {"EARTHDATA_USERNAME": "icepyx_devteam"}
ed_obj = reg.session
yield ed_obj
ed_obj.close()
Expand All @@ -32,8 +34,8 @@ def session(reg):


def test_get_custom_options_output(session):
obs = is2ref._get_custom_options(session, "ATL06", "005")
with open("./icepyx/tests/ATL06v05_options.json") as exp_json:
obs = is2ref._get_custom_options(session, "ATL06", "006")
with open("./icepyx/tests/ATL06v06_options.json") as exp_json:
exp = json.load(exp_json)
assert all(keys in obs.keys() for keys in exp.keys())
assert all(obs[key] == exp[key] for key in exp.keys())
Expand Down
1 change: 0 additions & 1 deletion icepyx/tests/test_is2ref.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import pytest
import warnings

import icepyx.core.is2ref as is2ref

Expand Down

0 comments on commit 34c36be

Please sign in to comment.