Skip to content

Commit

Permalink
test handler
Browse files Browse the repository at this point in the history
  • Loading branch information
aamalev committed Feb 19, 2019
1 parent 322c966 commit b6b025e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/test_handlers.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import pytest

from aioworkers_sentry.logging import SentryQueueHandler


@pytest.mark.parametrize('kwargs', [
{},
dict(dsn='https://<key>@sentry.io/<project>'),
])
def test_create_handler(kwargs, mocker):
mocker.patch('asyncio.get_event_loop', lambda: None)
assert SentryQueueHandler(**kwargs)

0 comments on commit b6b025e

Please sign in to comment.