tests: update as mail templates are now enabled by default (#41307)
This commit is contained in:
parent
daff7ab8a5
commit
d4393696d1
|
@ -66,6 +66,11 @@ def mail_templates_option(pub):
|
|||
|
||||
|
||||
def test_mail_templates_disabled(pub, superuser):
|
||||
if not pub.site_options.has_section('options'):
|
||||
pub.site_options.add_section('options')
|
||||
pub.site_options.set('options', 'mail-templates', 'false')
|
||||
with open(os.path.join(pub.app_dir, 'site-options.cfg'), 'w') as fd:
|
||||
pub.site_options.write(fd)
|
||||
app = login(get_app(pub))
|
||||
resp = app.get('/backoffice/workflows/')
|
||||
assert 'Mail Templates' not in resp
|
||||
|
|
Loading…
Reference in New Issue