From 6940159e28ea6648ae0b6a2c1e06702f201cdb08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Wed, 22 Apr 2015 12:20:54 +0200 Subject: [PATCH 11/11] tests: don't run text pages tests with backoffice open (#6726) --- tests/test_texts.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_texts.py b/tests/test_texts.py index 69b39c7..8d69610 100644 --- a/tests/test_texts.py +++ b/tests/test_texts.py @@ -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) -- 2.1.4