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)
def test_init(dvc): remote = GSRemote(dvc, CONFIG) assert remote.path_info == URL assert remote.projectname == PROJECT assert remote.credentialpath == CREDENTIALPATH
def test_gs(mock_client, dvc): remote = GSRemote(dvc, CONFIG) assert remote.credentialpath remote.gs() mock_client.assert_called_once_with(CREDENTIALPATH)
def remote(cls, repo): yield GSRemote(repo, {"url": cls.get_url()})