Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(issues): Remove impossible branch #70562

Merged
merged 1 commit into from
May 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 5 additions & 6 deletions tests/sentry/issues/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,18 +68,17 @@ def build_occurrence(self, **overrides: Any) -> IssueOccurrence:
return IssueOccurrence.from_dict(self.build_occurrence_data(**overrides))

def process_occurrence(
self, event_data: dict[str, Any] | None = None, **overrides
self, event_data: dict[str, Any], **overrides
) -> tuple[IssueOccurrence, GroupInfo | None]:
"""
Testutil to build and process occurrence data instead of going through Kafka.
This ensures the occurrence data is well-formed.
"""
occurrence_data = self.build_occurrence_data(**overrides)
if event_data:
if "event_id" not in event_data:
event_data["event_id"] = occurrence_data["event_id"]
if "project_id" not in event_data:
event_data["project_id"] = occurrence_data["project_id"]
if "event_id" not in event_data:
event_data["event_id"] = occurrence_data["event_id"]
if "project_id" not in event_data:
event_data["project_id"] = occurrence_data["project_id"]
return process_event_and_issue_occurrence(occurrence_data, event_data)


Expand Down