Projet

Général

Profil

0011-tests-don-t-run-text-pages-tests-with-backoffice-ope.patch

Frédéric Péters, 22 avril 2015 12:32

Télécharger (867 octets)

Voir les différences:

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(+)
tests/test_texts.py
13 13
    pub = create_temporary_pub()
14 14
    req = HTTPRequest(None, {})
15 15
    pub._set_request(req)
16
    # create an user otherwise the backoffice is open and a button to edit the
17
    # text gets automatically added.
18
    user = pub.user_class(name='foo')
19
    user.store()
16 20

  
17 21
def teardown_module(module):
18 22
    shutil.rmtree(pub.APP_DIR)
19
-