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