Esempio n. 1
0
def test_not_match(output, script, branch_name):
    assert not match(Command(script, output))
Esempio n. 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))
Esempio 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)
Esempio 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))