tests: don't run text pages tests with backoffice open (#6726)

This commit is contained in:
Frédéric Péters 2015-04-22 12:20:54 +02:00
parent 464ba1ed21
commit 68b96ea2b0
1 changed files with 4 additions and 0 deletions

View File

@ -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)