@@ -356,32 +356,31 @@ def _create_issue_search_results_json(issues, **kwargs):
356
356
class ClientRemoteLinkTests (JiraTestCase ):
357
357
def setUp (self ):
358
358
JiraTestCase .setUp (self )
359
- self .issue_1 = self .test_manager .project_b_issue1
360
- self .project_b_issue1_obj = self .test_manager .project_b_issue1_obj
359
+ self .issue_key = self .test_manager .project_b_issue1
361
360
362
361
def test_delete_remote_link_by_internal_id (self ):
363
362
link = self .jira .add_remote_link (
364
- self .issue_1 ,
363
+ self .issue_key ,
365
364
destination = DEFAULT_NEW_REMOTE_LINK_OBJECT ,
366
365
)
367
366
_id = link .id
368
- self .jira .delete_remote_link (self .issue_1 , internal_id = _id )
369
- self .assertRaises (JIRAError , self .jira .remote_link , self .issue_1 , _id )
367
+ self .jira .delete_remote_link (self .issue_key , internal_id = _id )
368
+ self .assertRaises (JIRAError , self .jira .remote_link , self .issue_key , _id )
370
369
371
370
def test_delete_remote_link_by_global_id (self ):
372
371
link = self .jira .add_remote_link (
373
- self .issue_1 ,
372
+ self .issue_key ,
374
373
destination = DEFAULT_NEW_REMOTE_LINK_OBJECT ,
375
374
globalId = "python-test:story.of.sasquatch.riding" ,
376
375
)
377
376
_id = link .id
378
377
self .jira .delete_remote_link (
379
- self .issue_1 , global_id = "python-test:story.of.sasquatch.riding"
378
+ self .issue_key , global_id = "python-test:story.of.sasquatch.riding"
380
379
)
381
- self .assertRaises (JIRAError , self .jira .remote_link , self .issue_1 , _id )
380
+ self .assertRaises (JIRAError , self .jira .remote_link , self .issue_key , _id )
382
381
383
382
def test_delete_remote_link_with_invalid_args (self ):
384
- self .assertRaises (ValueError , self .jira .delete_remote_link , self .issue_1 )
383
+ self .assertRaises (ValueError , self .jira .delete_remote_link , self .issue_key )
385
384
386
385
387
386
class WebsudoTests (JiraTestCase ):
0 commit comments