tests: don't run text pages tests with backoffice open (#6726)
This commit is contained in:
parent
464ba1ed21
commit
68b96ea2b0
|
@ -13,6 +13,10 @@ def setup_module(module):
|
|||
pub = create_temporary_pub()
|
||||
req = HTTPRequest(None, {})
|
||||
pub._set_request(req)
|
||||
# create an user otherwise the backoffice is open and a button to edit the
|
||||
# text gets automatically added.
|
||||
user = pub.user_class(name='foo')
|
||||
user.store()
|
||||
|
||||
def teardown_module(module):
|
||||
shutil.rmtree(pub.APP_DIR)
|
||||
|
|
Loading…
Reference in New Issue