Skip to content

Commit

Permalink
test: Add event exception None test
Browse files Browse the repository at this point in the history
  • Loading branch information
jangjodi committed Dec 14, 2023
1 parent 2d6e470 commit a3f0301
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/sentry/event_manager/test_event_manager_grouping.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a3f0301

Please sign in to comment.