Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration tests can only be run with the password to the "icepyx_devteam" URS account #614

Open
mfisher87 opened this issue Sep 25, 2024 · 0 comments

Comments

@mfisher87
Copy link
Member

I work around this with this change:

diff --git a/icepyx/tests/conftest.py b/icepyx/tests/conftest.py
index 5bc5eb8..4c643f6 100644
--- a/icepyx/tests/conftest.py
+++ b/icepyx/tests/conftest.py
@@ -35,7 +35,11 @@ def email():
 
 def pytest_configure(config):
     # append to netrc file and set permissions level
-    args = ("icepyx_devteam", "urs.earthdata.nasa.gov", os.getenv("NSIDC_LOGIN"))
+    args = (
+        os.getenv("EARTHDATA_USERNAME"),
+        "urs.earthdata.nasa.gov",
+        os.getenv("EARTHDATA_PASSWORD"),
+    )
     netrc_file = os.path.join(os.path.expanduser("~"), ".netrc")
     with open(netrc_file, "a+") as f:
         f.write("machine {1} login {0} password {2}\n".format(*args))

But I'm not sure why this is the way it is, so I figured I'd start with an issue :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant