Set incoming props as variable names rather than values in test rendering to allow props to be properly passed to component under test

This commit is contained in:
tomdds
2019-07-11 17:52:54 -04:00
parent fd6ad924d9
commit 5234677ad3
3 changed files with 10 additions and 7 deletions

View File

@@ -1,15 +1,15 @@
from jinja2 import Environment, FileSystemLoader
from wtforms.widgets import CheckboxInput
from wtforms.fields import BooleanField
from wtforms.fields import StringField
from wtforms import Form
env = Environment(loader=FileSystemLoader('templates/components'))
checkbox_template = env.get_template('checkbox_input.html')
field = BooleanField(
field = StringField(
label="Hooray!",
default=False,
default="initialchecked",
widget=CheckboxInput()
)