✅ test(test_template.py): add assertion to check if result is not None
The test now includes an assertion to check if the result of the function call is not None. This ensures that the function is returning a value and that the test is checking the correct output.
This commit is contained in:
parent
c191d893ca
commit
d4559c1356
1 changed files with 1 additions and 0 deletions
|
|
@ -82,6 +82,7 @@ def test_build_template_from_class():
|
|||
|
||||
# Test valid input
|
||||
result = build_template_from_class("Child", type_to_cls_dict)
|
||||
assert result is not None
|
||||
assert "template" in result
|
||||
assert "description" in result
|
||||
assert "base_classes" in result
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue