Beispiel #1
0
 def test_fetch_branch_fake_branch(self):
     repo_utils.clone_repo(self.repo_url, self.dest_path, 'master')
     with raises(BranchNotFoundError):
         repo_utils.fetch_branch(self.dest_path, 'nobranch')
Beispiel #2
0
 def test_clone_repo_non_existing_branch(self):
     with raises(BranchNotFoundError):
         repo_utils.clone_repo(self.repo_url, self.dest_path, 'nobranch')
     assert not os.path.exists(self.dest_path)
Beispiel #3
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)
Beispiel #4
0
 def test_clone_repo_existing_branch(self):
     repo_utils.clone_repo(self.repo_url, self.dest_path, 'master')
     assert os.path.exists(self.dest_path)