Ejemplo n.º 1
0
def test_ghpages_detect_branch_project(tmpdir, env):
    output_path = tmpdir.mkdir('output')
    publisher = GithubPagesPublisher(env, str(output_path))
    target_url = url_parse(
        'ghpages+https://MacDownApp/MacDownApp.github.io/macdown')
    branch = publisher.detect_target_branch(target_url)
    assert branch == 'gh-pages'
Ejemplo n.º 2
0
def test_ghpages_detect_branch_username_case_insensitive(tmpdir, env):
    output_path = tmpdir.mkdir('output')
    publisher = GithubPagesPublisher(env, str(output_path))
    target_url = url_parse('ghpages+https://MacDownApp/macdownapp.github.io')
    branch = publisher.detect_target_branch(target_url)
    assert branch == 'master'
Ejemplo n.º 3
0
def test_ghpages_detect_branch_project(tmpdir, env):
    output_path = tmpdir.mkdir('output')
    publisher = GithubPagesPublisher(env, str(output_path))
    target_url = url_parse('ghpages+https://MacDownApp/MacDownApp.github.io/macdown')
    branch = publisher.detect_target_branch(target_url)
    assert branch == 'gh-pages'
Ejemplo n.º 4
0
def test_ghpages_detect_branch_username(tmpdir, env):
    output_path = tmpdir.mkdir("output")
    publisher = GithubPagesPublisher(env, str(output_path))
    target_url = url_parse("ghpages+https://MacDownApp/MacDownApp.github.io")
    branch = publisher.detect_target_branch(target_url)
    assert branch == "master"
Ejemplo n.º 5
0
def test_ghpages_detect_branch_username_case_insensitive(tmpdir, env):
    output_path = tmpdir.mkdir('output')
    publisher = GithubPagesPublisher(env, str(output_path))
    target_url = url_parse('ghpages+https://MacDownApp/macdownapp.github.io')
    branch = publisher.detect_target_branch(target_url)
    assert branch == 'master'