From a3f03016e1a82a7b293f97b331fdf034369451ac Mon Sep 17 00:00:00 2001 From: Jodi Jang Date: Thu, 14 Dec 2023 13:32:43 -0800 Subject: [PATCH] test: Add event exception None test --- .../event_manager/test_event_manager_grouping.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/sentry/event_manager/test_event_manager_grouping.py b/tests/sentry/event_manager/test_event_manager_grouping.py index 1d0f5c74a6d701..cddfc4ae922c0c 100644 --- a/tests/sentry/event_manager/test_event_manager_grouping.py +++ b/tests/sentry/event_manager/test_event_manager_grouping.py @@ -342,3 +342,16 @@ def test_ignores_fingerprint_on_transaction_event(self): )[event1.group.id] == 1 ) + + def test_none_exception(self): + """Test that when the exception is None, the group is still formed.""" + manager = EventManager( + make_event( + exception=None, + ) + ) + with self.tasks(): + manager.normalize() + event = manager.save(self.project.id) + + assert event.group