Skip to content

Commit

Permalink
fixup add test
Browse files Browse the repository at this point in the history
  • Loading branch information
lobsterkatie committed Aug 15, 2024
1 parent 2d56752 commit 6bcd751
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/sentry/event_manager/test_event_manager_grouping.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,22 +175,22 @@ def test_creates_grouphash_metadata_when_appropriate(self):
grouphash = GroupHash.objects.filter(
project=self.project, hash=event1.get_primary_hash()
).first()
assert grouphash.metadata is None
assert grouphash and grouphash.metadata is None

# New hashes get metadata
event2 = save_new_event({"message": "Adopt, don't shop"}, self.project)
grouphash = GroupHash.objects.filter(
project=self.project, hash=event2.get_primary_hash()
).first()
assert isinstance(grouphash.metadata, GroupHashMetadata)
assert grouphash and isinstance(grouphash.metadata, GroupHashMetadata)

# Existing hashes aren't backfiled when new events are assigned to them
event3 = save_new_event({"message": "Dogs are great!"}, self.project)
assert event3.get_primary_hash() == event1.get_primary_hash()
grouphash = GroupHash.objects.filter(
project=self.project, hash=event3.get_primary_hash()
).first()
assert grouphash.metadata is None
assert grouphash and grouphash.metadata is None


class PlaceholderTitleTest(TestCase):
Expand Down

0 comments on commit 6bcd751

Please sign in to comment.