File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
tests/sentry/seer/autofix Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff 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 ()
You can’t perform that action at this time.
0 commit comments