From 692a078e29dfaae267fa83a16ffed6ba041854b7 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Fri, 22 Dec 2023 11:21:55 -0300 Subject: [PATCH] Remove unused import and test case --- tests/test_custom_component.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/tests/test_custom_component.py b/tests/test_custom_component.py index a89efa4d4..96a7d7acc 100644 --- a/tests/test_custom_component.py +++ b/tests/test_custom_component.py @@ -3,7 +3,6 @@ import types from uuid import uuid4 import pytest -from fastapi import HTTPException from langflow.interface.custom.base import CustomComponent from langflow.interface.custom.code_parser.code_parser import CodeParser, CodeSyntaxError from langflow.interface.custom.custom_component.component import Component, ComponentCodeNullError @@ -365,16 +364,6 @@ def test_component_get_code_tree_syntax_error(): component.get_code_tree(component.code) -def test_custom_component_class_template_validation_no_code(): - """ - Test the _class_template_validation method of the CustomComponent class - raises the HTTPException when the code is None. - """ - custom_component = CustomComponent(code=None, function_entrypoint_name="build") - with pytest.raises(HTTPException): - custom_component._class_template_validation(custom_component.code) - - def test_custom_component_get_code_tree_syntax_error(): """ Test the get_code_tree method of the CustomComponent class