How should I be running tests locally? #98
Unanswered
boothmanrylan
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Since #94 I have not been able to run tests locally.
Previously I ran
pytest
and the tests all ran as expected.Now when I run
pytest
, all of the ext integration tests fail withKeyError: GOOGLE_APPLICATION_CREDENTIALS
I've tried running
earthengine authenticate
before runningpytest
but get the same error.I've also tried running the following before
pytest
:earthengine authenticate export GOOGLE_APPLICATION_CREDENTIALS=/path/to/file/earth/engine/authenticate/saved/credentials/to.json
Doing this causes all the ext integration tests to fail with
google.auth.exceptions.MalformedError: Missing credential_source. A 'file' or 'url' must be provided.
If I revert this:
Xee/xee/ext_integration_test.py
Lines 44 to 48 in 07b8676
Back to this:
Everything works as expected.
Any suggestions would be appreciated thanks.
Beta Was this translation helpful? Give feedback.
All reactions