def test_update(self): repo = Jagare(self.path) path = os.path.join(self.path, 'hooks') assert os.path.islink(path) is False target = '/' update_hooks(repo.repository, target) assert os.path.islink(path) is True assert os.path.realpath(path) == target
def update_hooks(self, path): return update_hooks(self.repository, path)