Update function base classes to use Callable
instead of function
This commit is contained in:
parent
5c5ef227d1
commit
d87b6228df
8 changed files with 18 additions and 18 deletions
|
|
@ -69,7 +69,7 @@ def test_build_template_from_function():
|
|||
"ExampleClass1", type_to_loader_dict, add_function=True
|
||||
)
|
||||
assert result_with_function is not None
|
||||
assert "function" in result_with_function["base_classes"]
|
||||
assert "Callable" in result_with_function["base_classes"]
|
||||
|
||||
# Test with invalid name
|
||||
with pytest.raises(ValueError, match=r".* not found"):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue