Add test for custom component with TemplateField

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-12-10 15:48:51 -03:00
commit d670d0fd93
3 changed files with 39 additions and 0 deletions

View file

@ -308,3 +308,11 @@ def test_component_code():
# load the content as a string
with open(path, "r") as f:
return f.read()
@pytest.fixture
def test_component_with_templatefield_code():
path = Path(__file__).parent.absolute() / "data" / "component_with_templatefield.py"
# load the content as a string
with open(path, "r") as f:
return f.read()