| Conditions | 2 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2.1481 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | 1 | from plugin.core.libraries.tests.core.base import BaseTest |
|
| 35 | 1 | @classmethod |
|
| 36 | def on_success(cls, metadata): |
||
| 37 | # Inject pyOpenSSL into requests |
||
| 38 | 1 | try: |
|
| 39 | 1 | from requests.packages.urllib3.contrib.pyopenssl import inject_into_urllib3 |
|
| 40 | 1 | inject_into_urllib3() |
|
| 41 | except Exception, ex: |
||
| 42 | log.warn('Unable to inject pyOpenSSL into urllib3 - %s', ex, exc_info=True) |
||
| 43 | return |
||
| 44 | |||
| 45 | # Enable secure error reporting |
||
| 46 | 1 | from plugin.core.logger.handlers.error_reporter import RAVEN |
|
| 47 | RAVEN.set_protocol('threaded+requests+https') |
||
| 48 |