Red-DiscordBot/tests/core/test_sentry.py
Tobotimus 73c08da037
[V3 Sentry] Allow toggling of Sentry logging (#1214)
* Refactor sentry to allow toggle

* Rename sentry module

* Protect sentry manager

* Fix tests

* Fix EOF newlines

* Add docstrings
2018-01-15 15:26:26 +11:00

13 lines
255 B
Python

import logging
from redbot.core import sentry
def test_sentry_capture(red):
log = logging.getLogger(__name__)
mgr = sentry.SentryManager(log)
assert mgr.client is not None
mgr.client.captureMessage("Message from test_sentry module.")