tests: add check for indexing to ezt lazy tests
This commit is contained in:
parent
01c624cb29
commit
8f6f8f745f
|
@ -1263,6 +1263,9 @@ def test_lazy_ezt_templates(pub, variable_test_data):
|
|||
tmpl = Template('[is form_var_foo_foo "bar"]HELLO[else]BYE[end]')
|
||||
assert tmpl.render(context) == 'HELLO'
|
||||
|
||||
tmpl = Template('[form_user_name_identifier_0]')
|
||||
assert tmpl.render(context) == pub.user_class.select()[0].name_identifiers[0]
|
||||
|
||||
|
||||
def test_lazy_formdata_fields(pub):
|
||||
formdef = FormDef()
|
||||
|
|
Loading…
Reference in New Issue