Skip to content

Commit af48b41

Browse files
updated test
1 parent 333a8f1 commit af48b41

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tests/sentry/seer/autofix/test_issue_summary.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -641,11 +641,16 @@ def test_get_issue_summary_continues_when_automation_fails(
641641
)
642642
mock_call_seer.return_value = mock_summary
643643

644+
# Set fixability score so _run_automation will be called
645+
self.group.update(seer_fixability_score=0.75)
646+
644647
# Make _run_automation raise an exception
645648
mock_run_automation.side_effect = Exception("Automation failed")
646649

647-
# Call get_issue_summary and verify it still returns successfully
648-
summary_data, status_code = get_issue_summary(self.group, self.user)
650+
# Call get_issue_summary with a source that triggers automation
651+
summary_data, status_code = get_issue_summary(
652+
self.group, self.user, source=SeerAutomationSource.POST_PROCESS
653+
)
649654

650655
assert status_code == 200
651656
expected_response = mock_summary.dict()

0 commit comments

Comments
 (0)