Skip to content

Commit

Permalink
gdrive: Add test_service_account_using_env_var
Browse files Browse the repository at this point in the history
  • Loading branch information
daavoo committed Apr 8, 2022
1 parent a11aac3 commit 7dd0cff
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/unit/remote/test_gdrive.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,11 @@ def test_drive(self, dvc, monkeypatch):
)
with pytest.raises(GDriveAuthError):
assert fs.fs

def test_service_account_using_env_var(self, dvc, monkeypatch):
monkeypatch.setenv(GDriveFileSystem.GDRIVE_CREDENTIALS_DATA, "foo")
GDriveFileSystem(
gdrive_credentials_tmp_dir=dvc.tmp_dir,
gdrive_use_service_account=True,
**self.CONFIG
)

0 comments on commit 7dd0cff

Please sign in to comment.