Пример #1
0
 def test_fetch_noop(self):
     repo_utils.clone_repo(self.repo_url, self.dest_path, 'master')
     repo_utils.fetch(self.dest_path)
     assert os.path.exists(self.dest_path)
Пример #2
0
 def test_fetch_no_repo(self):
     fake_dest_path = self.temp_path + '/not_a_repo'
     assert not os.path.exists(fake_dest_path)
     with raises(OSError):
         repo_utils.fetch(fake_dest_path)
     assert not os.path.exists(fake_dest_path)