sudoblockio / tackle

Tackle is a programmable configuration language for building modular utilities, code generators, and CLIs with schema validation baked in.
Apache License 2.0
53 stars 2 forks source link

When using python hooks externally - errors don't seem to be raised #223

Open robcxyz opened 11 months ago

robcxyz commented 11 months ago

This should raise error

def test_hooks_exceptions_raises_on_dict_hook_value(cd):
    """When a hook's base field is not the right type - args: dict in this case."""
    cd('bad-hooks')
    # with pytest.raises(exceptions.MalformedHookDefinitionException):
    o = tackle('hook_1')
    assert o  # This should not  happen