コード例 #1
0
ファイル: test_git.py プロジェクト: dcramer/paver
def test_branch_chekout_cwd(sh):
    """it should get the CWD and assume that is the repo"""

    git.branch_checkout("my_branch")
    assert sh.called
    assert sh.call_args[0][
        0] == "cd %(current_path)s; git checkout my_branch" % dict(
            current_path=os.getcwd())
コード例 #2
0
ファイル: test_git.py プロジェクト: HonzaKral/paver
def test_branch_chekout_cwd(sh):
    """it should get the CWD and assume that is the repo"""
    
    git.branch_checkout("my_branch")
    assert sh.called
    assert sh.call_args[0][0] == "cd %(current_path)s; git checkout my_branch" % dict(
        current_path=os.getcwd()
    )
コード例 #3
0
ファイル: test_git.py プロジェクト: dcramer/paver
def test_simple_branch_checkout(sh):
    git.branch_checkout("my_branch", path="repo_path")
    assert sh.called
    assert sh.call_args[0][0] == "cd repo_path; git checkout my_branch"
コード例 #4
0
ファイル: test_git.py プロジェクト: HonzaKral/paver
def test_simple_branch_checkout(sh):
    git.branch_checkout("my_branch", path="repo_path")
    assert sh.called
    assert sh.call_args[0][0] == "cd repo_path; git checkout my_branch"