0007-tests-add-check-for-refused-http-access-for-sites-us.patch
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 |
- |