tests: do not rely on os.listdir() file ordering
This commit is contained in:
parent
2b41e9e1da
commit
30c0e72436
|
@ -464,7 +464,7 @@ def test_backoffice_submission(pub):
|
|||
assert not 'Submission' in resp.body
|
||||
app.get('/backoffice/submission/', status=403)
|
||||
|
||||
formdef = FormDef.select()[0]
|
||||
formdef = FormDef.get_by_urlname('form-title')
|
||||
formdef.backoffice_submission_roles = user.roles[:]
|
||||
formdef.store()
|
||||
resp = app.get('/backoffice/')
|
||||
|
@ -519,7 +519,7 @@ def test_backoffice_submission_tracking_code(pub):
|
|||
|
||||
app = login(get_app(pub))
|
||||
|
||||
formdef = FormDef.select()[0]
|
||||
formdef = FormDef.get_by_urlname('form-title')
|
||||
formdef.enable_tracking_codes = True
|
||||
formdef.backoffice_submission_roles = user.roles[:]
|
||||
formdef.store()
|
||||
|
|
Loading…
Reference in New Issue