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:
@@ -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()
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user