Пример #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)
Пример #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)
Пример #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)
Пример #4
0
Файл: gs.py Проект: yfarjoun/dvc
 def test_gs(self, mock_client):
     remote = RemoteGS(None, self.CONFIG)
     remote.gs()
     mock_client.assert_called_with(self.PROJECT)
Пример #5
0
def test_gs(mock_client, dvc):
    remote = RemoteGS(dvc, CONFIG)
    assert remote.credentialpath
    remote.gs()
    mock_client.assert_called_once_with(CREDENTIALPATH)