tests: add missing required superuser creation to some admin tests

This commit is contained in:
Frédéric Péters 2019-07-17 06:57:57 +02:00
parent e6a9520100
commit 189f25595a
1 changed files with 3 additions and 0 deletions

View File

@ -857,6 +857,7 @@ def test_form_digest_template(pub):
assert formdef.data_class().get(formdata.id).digest == 'XhelloY'
def test_form_delete(pub):
create_superuser(pub)
create_role()
FormDef.wipe()
@ -875,6 +876,7 @@ def test_form_delete(pub):
assert FormDef.count() == 0
def test_form_duplicate(pub):
create_superuser(pub)
create_role()
FormDef.wipe()
@ -900,6 +902,7 @@ def test_form_duplicate(pub):
assert FormDef.get(3).name == 'form title (copy 2)'
def test_form_export(pub):
create_superuser(pub)
create_role()
FormDef.wipe()