Exemplo n.º 1
0
def test_not_match(output, script, branch_name):
    assert not match(Command(script, output))
Exemplo n.º 2
0
def test_match_bitbucket(output_bitbucket):
    assert not match(Command('git push origin', output_bitbucket))
Exemplo n.º 3
0
def test_not_match(output, script, branch_name):
    assert not match(Command(script, output))
Exemplo n.º 4
0
def test_match_bitbucket(output_bitbucket):
    assert not match(Command("git push origin", output_bitbucket))
Exemplo n.º 5
0
def test_match(stderr):
    assert match(Command('git push master', stderr=stderr), None)
    assert not match(Command('git push master'), None)
    assert not match(Command('ls', stderr=stderr), None)
Exemplo n.º 6
0
def test_match(output):
    assert match(Command('git push', output))
    assert match(Command('git push master', output))
    assert not match(Command('git push master', ''))
    assert not match(Command('ls', output))