Exemplo n.º 1
0
def test_no_hook(repo):
    result = repo_contains_webhook(repo, 'http://random')
    assert result is False
Exemplo n.º 2
0
def test_include_inactive(repo):
    result = repo_contains_webhook(repo, 'http://test.inactive')
    assert result is True
Exemplo n.º 3
0
def test_multiple_no_inactive(repo):
    result = repo_contains_webhook(repo,
                                   'http://test.me',
                                   exclude_inactive=True)
    assert result is True