tests: clean custom views after test_lazy_global_forms

This commit is contained in:
Frédéric Péters 2021-10-19 15:31:42 +02:00
parent 5b19ab7fd9
commit 7c645bbab0
1 changed files with 2 additions and 0 deletions

View File

@ -1700,6 +1700,8 @@ def test_lazy_global_forms(pub):
tmpl = Template('{{forms|objects:"foobarlazy"|with_custom_view:"unknown"|count}}')
assert tmpl.render(context) == '0'
pub.custom_view_class.wipe()
def test_lazy_variables(pub, variable_test_data):
formdata = FormDef.select()[0].data_class().select()[0]