lib: fix sentry tests not running
This commit is contained in:
parent
977d3f6ef9
commit
e120d274e9
|
@ -7,12 +7,12 @@ from authentik.lib.sentry import SentryIgnoredException, before_send
|
||||||
class TestSentry(TestCase):
|
class TestSentry(TestCase):
|
||||||
"""test sentry integration"""
|
"""test sentry integration"""
|
||||||
|
|
||||||
def error_not_sent(self):
|
def test_error_not_sent(self):
|
||||||
"""Test SentryIgnoredError not sent"""
|
"""Test SentryIgnoredError not sent"""
|
||||||
self.assertIsNone(
|
self.assertIsNone(
|
||||||
before_send(None, {"exc_info": (0, SentryIgnoredException(), 0)})
|
before_send(None, {"exc_info": (0, SentryIgnoredException(), 0)})
|
||||||
)
|
)
|
||||||
|
|
||||||
def error_sent(self):
|
def test_error_sent(self):
|
||||||
"""Test error sent"""
|
"""Test error sent"""
|
||||||
self.assertIsNone(before_send(None, {"exc_info": (0, ValueError(), 0)}))
|
self.assertIsNone(before_send(None, {"exc_info": (0, ValueError(), 0)}))
|
||||||
|
|
Reference in a new issue