本文整理汇总了Python中passpie.history.Repository.pull_rebase方法的典型用法代码示例。如果您正苦于以下问题:Python Repository.pull_rebase方法的具体用法?Python Repository.pull_rebase怎么用?Python Repository.pull_rebase使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类passpie.history.Repository
的用法示例。
在下文中一共展示了Repository.pull_rebase方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_git_pull_rebase_calls_expected_command_when_remote_branch_is_passed
# 需要导入模块: from passpie.history import Repository [as 别名]
# 或者: from passpie.history.Repository import pull_rebase [as 别名]
def test_git_pull_rebase_calls_expected_command_when_remote_branch_is_passed(mocker, mock_process):
cmd = ['git', 'pull', '--rebase', 'another_origin', 'another_branch']
repo = Repository('path')
repo.pull_rebase(remote='another_origin', branch='another_branch')
mock_process.call.assert_called_once_with(cmd, cwd=repo.path)
示例2: test_git_pull_rebase_calls_expected_command
# 需要导入模块: from passpie.history import Repository [as 别名]
# 或者: from passpie.history.Repository import pull_rebase [as 别名]
def test_git_pull_rebase_calls_expected_command(mocker, mock_process):
cmd = ['git', 'pull', '--rebase', 'origin', 'master']
repo = Repository('path')
repo.pull_rebase()
mock_process.call.assert_called_once_with(cmd, cwd=repo.path)