def test_fail_update(self): with patch('procyon.repo.logic.GitRepo', new=raise_invalid_git_repo_error): result = update_repo() self.assertEquals(result, (False, None, None))
def test_ok_update(self): result = update_repo() self.assertTrue(result[0]) self.assertNotEquals(result[1], None) self.assertNotEquals(result[2], None)
def update(): """Update packages index. """ return update_repo()
def update(): """Update packages index. """ return update_repo()
def test_fail_update(self): with patch('procyon.repo.logic.GitRepo', new=raise_invalid_git_repo_error): result = update_repo() self.assertEquals(result, (False, None, None))
def test_ok_update(self): result = update_repo() self.assertTrue(result[0]) self.assertNotEquals(result[1], None) self.assertNotEquals(result[2], None)