示例#1
0
def test_gs_no_credspath(mock_client, dvc):
    config = CONFIG.copy()
    del config["credentialpath"]
    remote = GSRemote(dvc, config)
    remote.gs()
    mock_client.assert_called_with(PROJECT)
示例#2
0
def test_init(dvc):
    remote = GSRemote(dvc, CONFIG)
    assert remote.path_info == URL
    assert remote.projectname == PROJECT
    assert remote.credentialpath == CREDENTIALPATH
示例#3
0
def test_gs(mock_client, dvc):
    remote = GSRemote(dvc, CONFIG)
    assert remote.credentialpath
    remote.gs()
    mock_client.assert_called_once_with(CREDENTIALPATH)
示例#4
0
 def remote(cls, repo):
     yield GSRemote(repo, {"url": cls.get_url()})