Projet

Général

Profil

0007-tests-add-check-for-refused-http-access-for-sites-us.patch

Frédéric Péters, 11 juillet 2022 13:36

Télécharger (1,06 ko)

Voir les différences:

Subject: [PATCH 7/7] tests: add check for refused http access for sites using
 pickle (#67190)

 tests/test_rootdirectory.py | 11 +++++++++++
 1 file changed, 11 insertions(+)
tests/test_rootdirectory.py
27 27
    clean_temporary_pub()
28 28

  
29 29

  
30
@pytest.fixture
31
def pickle_pub():
32
    yield create_temporary_pub(sql_mode=False)
33
    clean_temporary_pub()
34

  
35

  
30 36
@pytest.fixture
31 37
def user1(pub):
32 38
    user1 = pub.user_class(name='user-one-role')
......
180 186

  
181 187
def test_i18n_js(pub):
182 188
    get_app(pub).get('/i18n.js')
189

  
190

  
191
def test_pickle_site(pickle_pub):
192
    resp = get_app(pickle_pub).get('/', status=503)
193
    assert resp.text == 'Missing database configuration'
183
-