@@ -85,12 +85,11 @@ def create_linked_issue(
85
85
86
86
def test_get_linked_issues (self ):
87
87
group = self .create_group (project = self .us_region_context .project )
88
- self .create_linked_issue (
88
+ linked_issue = self .create_linked_issue (
89
89
key = "TEST-123" ,
90
90
region_context = self .us_region_context ,
91
91
group = group ,
92
92
integration = self .default_jira_integration ,
93
- title = "US Group Link" ,
94
93
)
95
94
96
95
response = issue_service .get_linked_issues (
@@ -103,7 +102,7 @@ def test_get_linked_issues(self):
103
102
assert response == [
104
103
RpcLinkedIssueSummary (
105
104
issue_link = group .get_absolute_url (),
106
- title = group . title ,
105
+ date_added = linked_issue . date_added ,
107
106
)
108
107
]
109
108
@@ -114,7 +113,6 @@ def test_get_linked_issues_with_multiple_organizations_in_multiple_regions(self)
114
113
region_context = self .us_region_context ,
115
114
group = us_group ,
116
115
integration = self .default_jira_integration ,
117
- title = "US Group Link" ,
118
116
)
119
117
120
118
de_group = self .create_group (project = self .de_region_context .project )
@@ -123,7 +121,6 @@ def test_get_linked_issues_with_multiple_organizations_in_multiple_regions(self)
123
121
region_context = self .de_region_context ,
124
122
group = de_group ,
125
123
integration = self .default_jira_integration ,
126
- title = "DE Group Link" ,
127
124
)
128
125
129
126
response = issue_service .get_linked_issues (
@@ -139,11 +136,11 @@ def test_get_linked_issues_with_multiple_organizations_in_multiple_regions(self)
139
136
assert response == [
140
137
RpcLinkedIssueSummary (
141
138
issue_link = us_group .get_absolute_url (),
142
- title = us_linked_issue .title ,
139
+ date_added = us_linked_issue .date_added ,
143
140
),
144
141
RpcLinkedIssueSummary (
145
142
issue_link = de_group .get_absolute_url (),
146
- title = de_linked_issue .title ,
143
+ date_added = de_linked_issue .date_added ,
147
144
),
148
145
]
149
146
@@ -159,12 +156,11 @@ def test_get_empty_response_when_no_linked_issues(self):
159
156
160
157
def test_get_single_linked_issue_when_multiple_organizations_share_integration (self ):
161
158
us_group = self .create_group (project = self .us_region_context .project )
162
- us_linked_issue = self .create_linked_issue (
159
+ linked_issue = self .create_linked_issue (
163
160
key = "TEST-123" ,
164
161
region_context = self .us_region_context ,
165
162
group = us_group ,
166
163
integration = self .default_jira_integration ,
167
- title = "US Group Link" ,
168
164
)
169
165
170
166
response = issue_service .get_linked_issues (
@@ -177,7 +173,7 @@ def test_get_single_linked_issue_when_multiple_organizations_share_integration(s
177
173
assert response == [
178
174
RpcLinkedIssueSummary (
179
175
issue_link = us_group .get_absolute_url (),
180
- title = us_linked_issue . title ,
176
+ date_added = linked_issue . date_added ,
181
177
)
182
178
]
183
179
@@ -188,7 +184,6 @@ def test_filters_out_issues_from_other_organizations(self):
188
184
region_context = self .us_region_context ,
189
185
group = us_group ,
190
186
integration = self .default_jira_integration ,
191
- title = "US Group Link" ,
192
187
)
193
188
194
189
other_integration = self .create_integration (
@@ -205,7 +200,6 @@ def test_filters_out_issues_from_other_organizations(self):
205
200
region_context = self .us_region_context ,
206
201
group = unrelated_us_group ,
207
202
integration = other_integration ,
208
- title = "Unrelated US Group Link" ,
209
203
)
210
204
211
205
response = issue_service .get_linked_issues (
@@ -218,6 +212,6 @@ def test_filters_out_issues_from_other_organizations(self):
218
212
assert response == [
219
213
RpcLinkedIssueSummary (
220
214
issue_link = us_group .get_absolute_url (),
221
- title = us_linked_issue .title ,
215
+ date_added = us_linked_issue .date_added ,
222
216
)
223
217
]
0 commit comments