Ejemplo n.º 1
0
def test_branch_list_correctly_parses_git_output(sh):
    output = git.branch_list(path="repo_path", __override__="""
* git_support
  master
  virtualenv_in_folder
    """)
    
    assert output == ("git_support", ["git_support", "master", "virtualenv_in_folder"])
Ejemplo n.º 2
0
def test_branch_list_correctly_parses_git_output(sh):
    output = git.branch_list(path="repo_path",
                             __override__="""
* git_support
  master
  virtualenv_in_folder
    """)

    assert output == ("git_support",
                      ["git_support", "master", "virtualenv_in_folder"])
Ejemplo n.º 3
0
def test_branch_list_correctly_parses_remote_branch_output(sh):
    output = git.branch_list(path="repo_path", 
        remote_branches_only = True,
        __override__="""
    github/gh-pages
    github/git_support
    github/master""")
    
    assert output == ('',
        ["github/gh-pages", "github/git_support", "github/master"])
Ejemplo n.º 4
0
def test_branch_list_correctly_parses_remote_branch_output(sh):
    output = git.branch_list(path="repo_path",
                             remote_branches_only=True,
                             __override__="""
    github/gh-pages
    github/git_support
    github/master""")

    assert output == ('', [
        "github/gh-pages", "github/git_support", "github/master"
    ])