def test_status1_false(self, mock_log, mock_git, mock_post): """Function: test_status1_false Description: Test with status1 set to False. Arguments: """ mock_log.return_value = True mock_git.git_fetch.return_value = (self.status2, self.msg2) mock_post.return_value = True self.assertFalse( merge_repo.process_project(mock_git, self.cfg, mock_log))
def test_status3_true(self, mock_log, mock_git, mock_merge): """Function: test_status3_true Description: Test with status3 set to True. Arguments: """ mock_log.return_value = True mock_git.git_fetch.return_value = (self.status, self.msg) mock_git.rename_br.return_value = (self.status, self.msg) mock_git.git_co.return_value = (self.status, self.msg) mock_merge.return_value = True self.assertFalse( merge_repo.process_project(mock_git, self.cfg, mock_log))
def test_status1_true(self, mock_log, mock_git, mock_post): """Function: test_status1_true Description: Test with status1 set to True. Arguments: """ mock_log.return_value = True mock_git.git_fetch.return_value = (self.status, self.msg) mock_git.rename_br.return_value = (self.status2, self.msg2) mock_git.mod_branch.return_value = "Mod_Branch" mock_git.branch.return_value = "Master" mock_post.return_value = True self.assertFalse( merge_repo.process_project(mock_git, self.cfg, mock_log))