def test_diff_commit__compare_point_applied(): executor = mock.Mock() uar = Repository(repo_name, '/loc/', [None], executor) uar.diff_commit('commit-to-diff', compare_point='base') executor.assert_any_call("cd /loc/ && git checkout base")
def test_diff_commit(): executor = mock.Mock() uar = Repository(repo_name, '/loc/', [None], executor) uar.diff_commit('commit-to-diff') executor.assert_called_with("cd /loc/ && git diff commit-to-diff")