def test_banned():
    provider = GitHubRepoProvider(
        spec='jupyterhub/zero-to-jupyterhub-k8s/v0.4',
        banned_specs=['^jupyterhub.*'])
    assert provider.is_banned()
Exemplo n.º 2
0
def test_ban_is_case_insensitive(ban_spec):
    provider = GitHubRepoProvider(
        spec='AABBCcc/DDeeFF/v0.4',
        banned_specs=[ban_spec]
    )
    assert provider.is_banned()
Exemplo n.º 3
0
def test_banned():
    provider = GitHubRepoProvider(
        spec="jupyterhub/zero-to-jupyterhub-k8s/v0.4",
        banned_specs=["^jupyterhub.*"])
    assert provider.is_banned()