Ejemplo n.º 1
0
 def test_gs_no_credspath(self, mock_client):
     config = self.CONFIG.copy()
     del config["credentialpath"]
     remote = RemoteGS(None, config)
     remote.gs()
     mock_client.assert_called_with(self.PROJECT)
Ejemplo n.º 2
0
 def test_gs(self, mock_client):
     remote = RemoteGS(None, self.CONFIG)
     self.assertTrue(remote.credentialpath)
     remote.gs()
     mock_client.assert_called_once_with(self.CREDENTIALPATH)
Ejemplo n.º 3
0
def test_gs_no_credspath(mock_client, dvc):
    config = CONFIG.copy()
    del config["credentialpath"]
    remote = RemoteGS(dvc, config)
    remote.gs()
    mock_client.assert_called_with(PROJECT)
Ejemplo n.º 4
0
Archivo: gs.py Proyecto: yfarjoun/dvc
 def test_gs(self, mock_client):
     remote = RemoteGS(None, self.CONFIG)
     remote.gs()
     mock_client.assert_called_with(self.PROJECT)
Ejemplo n.º 5
0
def test_gs(mock_client, dvc):
    remote = RemoteGS(dvc, CONFIG)
    assert remote.credentialpath
    remote.gs()
    mock_client.assert_called_once_with(CREDENTIALPATH)