Skip to content

Commit

Permalink
test: reset authentication to second test arrange
Browse files Browse the repository at this point in the history
  • Loading branch information
dfguerrerom committed Apr 24, 2024
1 parent 03d5b85 commit 85d80f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_scripts/test_decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def test_init_ee() -> None:

## 2. Assert when there's no a project associated
# remove the project_id key if it exists
ee.data._credentials = None
credentials.pop("project_id", None)
credentials.pop("project", None)
if "EARTHENGINE_PROJECT" in os.environ:
Expand Down
1 change: 1 addition & 0 deletions tests/test_scripts/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ def test_init_ee() -> None:

## 2. Assert when there's no a project associated
# remove the project_id key if it exists
ee.data._credentials = None
credentials.pop("project_id", None)
credentials.pop("project", None)
if "EARTHENGINE_PROJECT" in os.environ:
Expand Down

0 comments on commit 85d80f5

Please sign in to comment.