Пример #1
0
 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
Пример #2
0
 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
Пример #3
0
 def update_hooks(self, path):
     return update_hooks(self.repository, path)
Пример #4
0
 def update_hooks(self, path):
     return update_hooks(self.repository, path)