Fix test_custom_component.py to call the correct method

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-01-25 19:44:23 -03:00
commit 103df34d0e

View file

@ -373,7 +373,7 @@ def test_custom_component_class_template_validation_no_code():
"""
custom_component = CustomComponent(code=None, function_entrypoint_name="build")
with pytest.raises(HTTPException):
custom_component._class_template_validation(custom_component.code)
custom_component.get_function()
def test_custom_component_get_code_tree_syntax_error():