Skip to content

Commit

Permalink
Revert "Fix behind EDL tests (#480)"
Browse files Browse the repository at this point in the history
This reverts commit 34c36be.
  • Loading branch information
JessicaS11 authored Jan 5, 2024
1 parent 5f5b877 commit a7082f0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 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 EARTHDATA_PASSWORD=$NSIDC_LOGIN
- export NSIDC_LOGIN=$NSIDC_LOGIN
- pytest icepyx/tests/test_behind_NSIDC_API_login.py
1 change: 1 addition & 0 deletions icepyx/tests/ATL06v05_options.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion icepyx/tests/ATL06v06_options.json

This file was deleted.

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

import icepyx as ipx
Expand All @@ -24,7 +23,6 @@ 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 @@ -34,8 +32,8 @@ def session(reg):


def test_get_custom_options_output(session):
obs = is2ref._get_custom_options(session, "ATL06", "006")
with open("./icepyx/tests/ATL06v06_options.json") as exp_json:
obs = is2ref._get_custom_options(session, "ATL06", "005")
with open("./icepyx/tests/ATL06v05_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: 1 addition & 0 deletions icepyx/tests/test_is2ref.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest
import warnings

import icepyx.core.is2ref as is2ref

Expand Down

0 comments on commit a7082f0

Please sign in to comment.