From 9756c50cd1fc5134d5b9b27af65cd69d2ccce694 Mon Sep 17 00:00:00 2001 From: Jessica Scheick Date: Mon, 18 Dec 2023 14:29:25 -0500 Subject: [PATCH] update env var names from thos orig used in earthaccess [nsidc_tests] --- .travis.yml | 2 +- icepyx/tests/test_behind_NSIDC_API_login.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 308925d31..b2c4ccde6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/icepyx/tests/test_behind_NSIDC_API_login.py b/icepyx/tests/test_behind_NSIDC_API_login.py index 7df4d0553..4e0f562fd 100644 --- a/icepyx/tests/test_behind_NSIDC_API_login.py +++ b/icepyx/tests/test_behind_NSIDC_API_login.py @@ -23,6 +23,7 @@ def reg(): @pytest.fixture(scope="module") def session(reg): + os.environ = {"EARTHDATA_EMAIL": "icepyx.dev@gmail.com"} ed_obj = reg.session yield ed_obj ed_obj.close()