✅ 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:
Gabriel Luiz Freitas Almeida 2023-06-23 10:53:53 -03:00
commit d4559c1356

View file

@ -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