Exemplo n.º 1
0
def test_validate_schema(value):
    with pytest.raises(click.UsageError):
        callbacks.validate_schema(None, None, value)
Exemplo n.º 2
0
def test_validate_schema_path_without_base_url():
    with pytest.raises(click.UsageError):
        callbacks.validate_schema(SimpleNamespace(params={}), None, SIMPLE_PATH)
Exemplo n.º 3
0
def test_validate_schema(value):
    with pytest.raises(click.UsageError):
        callbacks.validate_schema(SimpleNamespace(params={}), None, value)