-
- Downloads
sentry: Allow to init sentry with no DSN
When providing a None DSN to sentry_sdk.init, sentry client is initialized and functional but the events are not sent. This type of configuration is useful when running tests so ensure to always initialize sentry in swh.core.sentry.init_sentry regardless of the dsn value.
Showing
- swh/core/api/tests/test_gunicorn.py 76 additions, 52 deletionsswh/core/api/tests/test_gunicorn.py
- swh/core/sentry.py 19 additions, 14 deletionsswh/core/sentry.py
- swh/core/tests/test_cli.py 34 additions, 29 deletionsswh/core/tests/test_cli.py
- swh/core/tests/test_sentry.py 13 additions, 0 deletionsswh/core/tests/test_sentry.py
Loading