@@ -1169,7 +1169,9 @@ def test_passes_correct_pr_description_suffix(self, mock_post):
11691169 )
11701170
11711171 body = mock_post .call_args [0 ][0 ]
1172- assert body ["payload" ]["pr_description_suffix" ] == f"Fixes { self .group .qualified_short_id } "
1172+ issue_url = self .group .get_absolute_url (params = {"seerDrawer" : "true" })
1173+ expected = f"Fixes [{ self .group .qualified_short_id } ]({ issue_url } )"
1174+ assert body ["payload" ]["pr_description_suffix" ] == expected
11731175
11741176 @patch ("sentry.seer.agent.client.make_agent_update_request" )
11751177 def test_pr_description_suffix_includes_linear_issue (self , mock_post ):
@@ -1198,7 +1200,11 @@ def test_pr_description_suffix_includes_linear_issue(self, mock_post):
11981200 )
11991201
12001202 body = mock_post .call_args [0 ][0 ]
1201- expected = f"Fixes { self .group .qualified_short_id } \n Fixes [PROJ-123](https://linear.app/proj/issue/PROJ-123)"
1203+ issue_url = self .group .get_absolute_url (params = {"seerDrawer" : "true" })
1204+ expected = (
1205+ f"Fixes [{ self .group .qualified_short_id } ]({ issue_url } )\n "
1206+ f"Fixes [PROJ-123](https://linear.app/proj/issue/PROJ-123)"
1207+ )
12021208 assert body ["payload" ]["pr_description_suffix" ] == expected
12031209
12041210 @patch ("sentry.seer.agent.client.make_agent_update_request" )
@@ -1228,5 +1234,9 @@ def test_pr_description_suffix_linear_alphanumeric_prefix(self, mock_post):
12281234 )
12291235
12301236 body = mock_post .call_args [0 ][0 ]
1231- expected = f"Fixes { self .group .qualified_short_id } \n Fixes [PROJ2-456](https://linear.app/team/issue/PROJ2-456)"
1237+ issue_url = self .group .get_absolute_url (params = {"seerDrawer" : "true" })
1238+ expected = (
1239+ f"Fixes [{ self .group .qualified_short_id } ]({ issue_url } )\n "
1240+ f"Fixes [PROJ2-456](https://linear.app/team/issue/PROJ2-456)"
1241+ )
12321242 assert body ["payload" ]["pr_description_suffix" ] == expected
0 commit comments