mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-07 07:18:27 +01:00
gdrive: Add test_service_account_using_env_var
This commit is contained in:
@@ -41,3 +41,11 @@ class TestRemoteGDrive:
|
||||
)
|
||||
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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user