Lines Matching refs:run_cmd
34 def testUpdateProdBranchWithNoNewChanges(self, run_cmd): argument
39 run_cmd.return_value = None
43 run_cmd.assert_has_calls(expect_cmds)
47 def testUpdateProdBranchRebaseToCorrectHash(self, run_cmd): argument
52 run_cmd.side_effect = [self.GIT_LOG_FOR_COMMITS, None, self.PUSH_LOG]
58 run_cmd.assert_has_calls(expect_cmds)
62 def testUpdateProdBranchRebaseToProdNext(self, run_cmd): argument
67 run_cmd.side_effect = [self.GIT_LOG_FOR_COMMITS, None, self.PUSH_LOG]
75 run_cmd.assert_has_calls(expect_cmds)
79 def testUpdateProdBranchParseCommitRange(self, run_cmd): argument
84 run_cmd.side_effect = [self.GIT_LOG_FOR_COMMITS, None, self.PUSH_LOG]
90 def testUpdateProdBranchFailToParseCommitRange(self, run_cmd): argument
95 run_cmd.side_effect = [self.GIT_LOG_FOR_COMMITS, None,
102 def testGetPushedCommits(self, run_cmd): argument
110 run_cmd.return_value = fake_commits_logs
120 run_cmd.assert_called_with(expect_git_log_cmd, stream_output=True)
130 run_cmd.assert_called_with(expect_git_log_cmd, stream_output=True)