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)
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)
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)
def test_gs(self, mock_client): remote = RemoteGS(None, self.CONFIG) remote.gs() mock_client.assert_called_with(self.PROJECT)
def test_gs(mock_client, dvc): remote = RemoteGS(dvc, CONFIG) assert remote.credentialpath remote.gs() mock_client.assert_called_once_with(CREDENTIALPATH)