@@ -155,6 +155,7 @@ def RunHierarchyTest( app, kind, direction, location, expected, code ):
155155 RunTest ( app , test )
156156
157157
158+ @WithRetry ()
158159def RunFixItTest ( app ,
159160 description ,
160161 filepath ,
@@ -679,7 +680,6 @@ def test_Subcommands_GoToReferences_NoReferences( self, app ):
679680 'Cannot jump to location' ) )
680681
681682
682- @WithRetry ()
683683 @IsolatedYcmd ( {
684684 'extra_conf_globlist' : PathToTestFile ( 'multiple_projects' , '*' )
685685 } )
@@ -722,14 +722,11 @@ def test_Subcommands_GoToReferences_MultipleProjects( self, app ):
722722 'com' ,
723723 'test' ,
724724 'TestWidgetImpl.java' )
725- for desc , request , expect in [
725+ for desc , filepath , line , column , expect in [
726726 ( 'GoToReferences works across multiple projects' ,
727- {
728- 'command' : 'GoToReferences' ,
729- 'filepath' : utils_java ,
730- 'line_num' : 5 ,
731- 'column_num' : 22 ,
732- },
727+ utils_java ,
728+ 5 ,
729+ 22 ,
733730 {
734731 'response' : requests .codes .ok ,
735732 'data' : contains_inanyorder (
@@ -739,12 +736,9 @@ def test_Subcommands_GoToReferences_MultipleProjects( self, app ):
739736 )
740737 } ),
741738 ( 'GoToReferences works in an unrelated project at the same time' ,
742- {
743- 'command' : 'GoToReferences' ,
744- 'filepath' : abstract_test_widget ,
745- 'line_num' : 10 ,
746- 'column_num' : 15 ,
747- },
739+ abstract_test_widget ,
740+ 10 ,
741+ 15 ,
748742 {
749743 'response' : requests .codes .ok ,
750744 'data' : contains_inanyorder (
@@ -755,16 +749,20 @@ def test_Subcommands_GoToReferences_MultipleProjects( self, app ):
755749 )
756750 } ),
757751 ]:
758- with self .subTest ( desc = desc , request = request , expect = expect ):
759- filepath = request [ 'filepath' ]
752+ with self .subTest ( desc = desc ,
753+ filepath = filepath ,
754+ line = line ,
755+ column = column ,
756+ expect = expect ):
760757 StartJavaCompleterServerWithFile ( app , filepath )
761758
762-
763- RunTest ( app , {
764- 'description' : desc ,
765- 'request' : request ,
766- 'expect' : expect
767- } )
759+ RunGoToTest ( app ,
760+ desc ,
761+ filepath ,
762+ line ,
763+ column ,
764+ 'GoToReferences' ,
765+ expect )
768766
769767
770768 @WithRetry ()
@@ -1102,7 +1100,6 @@ def test_Subcommands_RefactorRename_Unicode( self, app ):
11021100
11031101
11041102
1105- @WithRetry ()
11061103 @SharedYcmd
11071104 def test_Subcommands_FixIt_SingleDiag_MultipleOption_Insertion ( self , app ):
11081105 import os
@@ -1259,7 +1256,6 @@ def test_Subcommands_FixIt_SingleDiag_MultipleOption_Insertion( self, app ):
12591256 RunFixItTest ( app , description , filepath , 19 , column , fixits_for_line )
12601257
12611258
1262- @WithRetry ()
12631259 @SharedYcmd
12641260 def test_Subcommands_FixIt_SingleDiag_SingleOption_Modify ( self , app ):
12651261 filepath = PathToTestFile ( 'simple_eclipse_project' ,
@@ -1327,7 +1323,6 @@ def test_Subcommands_FixIt_SingleDiag_SingleOption_Modify( self, app ):
13271323 filepath , 27 , 12 , fixits )
13281324
13291325
1330- @WithRetry ()
13311326 @SharedYcmd
13321327 def test_Subcommands_FixIt_SingleDiag_MultiOption_Delete ( self , app ):
13331328 filepath = PathToTestFile ( 'simple_eclipse_project' ,
@@ -1404,7 +1399,6 @@ def test_Subcommands_FixIt_SingleDiag_MultiOption_Delete( self, app ):
14041399 filepath , 15 , 29 , fixits )
14051400
14061401
1407- @WithRetry ()
14081402 @SharedYcmd
14091403 def test_Subcommands_FixIt_MultipleDiags ( self , app ):
14101404 for description , column , expect_fixits in [
@@ -1626,7 +1620,6 @@ def test_Subcommands_FixIt_Range( self, app ):
16261620 )
16271621
16281622
1629- @WithRetry ()
16301623 @SharedYcmd
16311624 def test_Subcommands_FixIt_NoDiagnostics ( self , app ):
16321625 filepath = PathToTestFile ( 'simple_eclipse_project' ,
@@ -1652,7 +1645,6 @@ def test_Subcommands_FixIt_NoDiagnostics( self, app ):
16521645 'chunks' : instance_of ( list ) } ) ) } ) )
16531646
16541647
1655- @WithRetry ()
16561648 @SharedYcmd
16571649 def test_Subcommands_FixIt_Unicode ( self , app ):
16581650 fixits = has_entries ( {
@@ -1720,7 +1712,6 @@ def test_Subcommands_FixIt_Unicode( self, app ):
17201712 TEST_JAVA , 13 , 1 , fixits )
17211713
17221714
1723- @WithRetry ()
17241715 @IsolatedYcmd ()
17251716 def test_Subcommands_FixIt_InvalidURI ( self , app ):
17261717 filepath = PathToTestFile ( 'simple_eclipse_project' ,
0 commit comments