示例#1
0
def test_not_match(output, script, branch_name):
    assert not match(Command(script, output))
示例#2
0
def test_match_bitbucket(output_bitbucket):
    assert not match(Command('git push origin', output_bitbucket))
def test_not_match(output, script, branch_name):
    assert not match(Command(script, output))
def test_match_bitbucket(output_bitbucket):
    assert not match(Command("git push origin", output_bitbucket))
示例#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)
示例#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))