@@ -66,7 +66,7 @@ def test_get_issue_summary_with_existing_summary(
6666 assert status_code == 200
6767 assert summary_data == convert_dict_key_case (existing_summary , snake_to_camel_case )
6868 mock_call_seer .assert_not_called ()
69- mock_get_acknowledgement .assert_called_once_with (self .group .organization . id )
69+ mock_get_acknowledgement .assert_called_once_with (self .group .organization )
7070
7171 @patch ("sentry.seer.autofix.issue_summary.get_seer_org_acknowledgement" )
7272 @patch ("sentry.seer.autofix.issue_summary._get_event" )
@@ -81,7 +81,7 @@ def test_get_issue_summary_without_event(
8181 assert status_code == 400
8282 assert summary_data == {"detail" : "Could not find an event for the issue" }
8383 assert cache .get (f"ai-group-summary-v2:{ self .group .id } " ) is None
84- mock_get_acknowledgement .assert_called_once_with (self .group .organization . id )
84+ mock_get_acknowledgement .assert_called_once_with (self .group .organization )
8585
8686 @patch ("sentry.seer.autofix.issue_summary.get_seer_org_acknowledgement" )
8787 @patch ("sentry.seer.autofix.issue_summary._get_trace_tree_for_event" )
@@ -123,7 +123,7 @@ def test_get_issue_summary_without_existing_summary(
123123 mock_get_event .assert_called_once_with (self .group , self .user , provided_event_id = None )
124124 mock_get_trace_tree .assert_called_once ()
125125 mock_call_seer .assert_called_once_with (self .group , serialized_event , {"trace" : "tree" })
126- mock_get_acknowledgement .assert_called_once_with (self .group .organization . id )
126+ mock_get_acknowledgement .assert_called_once_with (self .group .organization )
127127
128128 # Check if the cache was set correctly
129129 cached_summary = cache .get (f"ai-group-summary-v2:{ self .group .id } " )
@@ -141,7 +141,7 @@ def test_get_issue_summary_without_ai_acknowledgement(self) -> None:
141141 assert summary_data == {
142142 "detail" : "AI Autofix has not been acknowledged by the organization."
143143 }
144- mock_get_acknowledgement .assert_called_once_with (self .group .organization . id )
144+ mock_get_acknowledgement .assert_called_once_with (self .group .organization )
145145
146146 @patch ("sentry.seer.autofix.issue_summary.requests.post" )
147147 @patch ("sentry.seer.autofix.issue_summary._get_event" )
@@ -185,7 +185,7 @@ def test_call_seer_integration(
185185 mock_post .assert_called_once ()
186186 payload = orjson .loads (mock_post .call_args_list [0 ].kwargs ["data" ])
187187 assert payload ["trace_tree" ] is None
188- mock_get_acknowledgement .assert_called_once_with (self .group .organization . id )
188+ mock_get_acknowledgement .assert_called_once_with (self .group .organization )
189189
190190 assert cache .get (f"ai-group-summary-v2:{ self .group .id } " ) == expected_response_summary
191191
@@ -242,7 +242,7 @@ def test_get_issue_summary_cache_write_read(
242242 # Verify that _get_event and _call_seer were not called due to cache hit
243243 mock_get_event .assert_not_called ()
244244 mock_call_seer .assert_not_called ()
245- mock_get_acknowledgement .assert_called_with (self .group .organization . id )
245+ mock_get_acknowledgement .assert_called_with (self .group .organization )
246246
247247 @patch ("sentry.seer.autofix.issue_summary._generate_summary" )
248248 @patch ("sentry.seer.autofix.issue_summary.get_seer_org_acknowledgement" )
@@ -338,7 +338,7 @@ def test_get_issue_summary_concurrent_force_event_id_bypasses_lock(
338338
339339 # Ensure generation was called directly
340340 mock_generate_summary .assert_called_once ()
341- mock_get_acknowledgement .assert_called_once_with (self .group .organization . id )
341+ mock_get_acknowledgement .assert_called_once_with (self .group .organization )
342342
343343 @patch ("sentry.seer.autofix.issue_summary.sign_with_seer_secret" , return_value = {})
344344 @patch ("sentry.seer.autofix.issue_summary.requests.post" )
@@ -406,7 +406,7 @@ def test_get_issue_summary_lock_timeout(
406406 mock_generate_summary_core .assert_not_called ()
407407 # Ensure cache was checked three times (once initially, once after lock failure, and once for hideAiFeatures check)
408408 assert mock_cache_get .call_count == 3
409- mock_get_acknowledgement .assert_called_once_with (self .group .organization . id )
409+ mock_get_acknowledgement .assert_called_once_with (self .group .organization )
410410
411411 @patch ("sentry.seer.autofix.issue_summary.eventstore.backend.get_event_by_id" )
412412 @patch ("sentry.seer.autofix.issue_summary.serialize" )
0 commit comments