Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_validate_schema(value):
with pytest.raises(click.UsageError):
callbacks.validate_schema(SimpleNamespace(params={}), None, value)
def test_validate_schema_path_without_base_url():
with pytest.raises(click.UsageError):
callbacks.validate_schema(SimpleNamespace(params={}), None, SIMPLE_PATH)