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