|
Ran
|
Files
4
|
Run time
0s
|
Badge
README BADGES
|
push
travis-ci
<a href="https://github.com/inveniosoftware/pytest-invenio/commit/<a class=hub.com/inveniosoftware/pytest-invenio/commit/ee851c0c81340a86f024fc509c6f26bf0556bc57">ee851c0c8<a href="https://github.com/inveniosoftware/pytest-invenio/commit/ee851c0c81340a86f024fc509c6f26bf0556bc57">">Fix default app config CSP value After [this change in invenio-app](https://github.com/inveniosoftware/invenio-app/commit/</a><a class="double-link" href="https://github.com/inveniosoftware/pytest-invenio/commit/<a class="double-link" href="https://github.com/inveniosoftware/pytest-invenio/commit/1aa6bb95b94c77b79c8bbfd448582f68bf52a686">1aa6bb95b</a>">1aa6bb95b</a><a href="https://github.com/inveniosoftware/pytest-invenio/commit/ee851c0c81340a86f024fc509c6f26bf0556bc57">) the test app needs to init the `content_security_policy` dict value, otherwise it fails with: ``` if app.config['DEBUG']: app.config['APP_DEFAULT_SECURE_HEADERS'][ > 'content_security_policy']['default-src'] += \ flask_talisman_debug_mode E KeyError: 'content_security_policy' ../modules/invenio-app/invenio_app/ext.py:65: KeyError ```
151 of 158 relevant lines covered (95.57%)
0.96 hits per line
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
|---|