Add test for custom component with TemplateField
This commit is contained in:
parent
a74b86e93b
commit
d670d0fd93
3 changed files with 39 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue