Skip to content

Commit

Permalink
Re-instate test to satisfy coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
currycoder committed Nov 11, 2024
1 parent 4a42fda commit c15ee7e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions mail/tests/libraries/test_helpers.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import unittest
from unittest import mock

from mail.libraries.helpers import log_to_sentry


class TestLogToSentry(unittest.TestCase):

@mock.patch("sentry_sdk.capture_message")
def test_log_to_sentry(self, mock_capture_message):
log_to_sentry("some message", {"extra": "context"}, level="debug")
mock_capture_message.assert_called_with("some message", level="debug")

0 comments on commit c15ee7e

Please sign in to comment.