From ec52c897c84d0c003dacc9d32bbd37b4285e07bb Mon Sep 17 00:00:00 2001 From: Boris Staletic Date: Mon, 12 Aug 2024 09:20:06 +0200 Subject: [PATCH] Attempt to fix C# tests --- ycmd/tests/cs/subcommands_test.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/ycmd/tests/cs/subcommands_test.py b/ycmd/tests/cs/subcommands_test.py index 93799429ba..cd795609af 100644 --- a/ycmd/tests/cs/subcommands_test.py +++ b/ycmd/tests/cs/subcommands_test.py @@ -109,15 +109,12 @@ def test_Subcommands_FixIt_Multi( self, app ): 'fixits': contains_exactly( has_entries( { 'text': 'Introduce constant', - 'command': has_entries( { 'index': 0 } ), 'resolve': True } ), has_entries( { 'text': 'Convert to binary', - 'command': has_entries( { 'index': 1 } ), 'resolve': True } ), has_entries( { 'text': 'Convert to hex', - 'command': has_entries( { 'index': 2 } ), 'resolve': True } ), ) } ) ) request.pop( 'command_arguments' ) @@ -152,11 +149,9 @@ def test_Subcommands_FixIt_Range( self, app ): 'fixits': contains_exactly( has_entries( { 'text': 'Extract method', - 'command': has_entries( { 'index': 0 } ), 'resolve': True } ), has_entries( { 'text': 'Extract local function', - 'command': has_entries( { 'index': 1 } ), 'resolve': True } ), ) } ) ) @@ -415,7 +410,7 @@ def test_Subcommands_GoToReferences_InvalidLocation( self, app ): goto_data, expect_errors = True ).json assert_that( response, ErrorMatcher( - RuntimeError, 'No references found' ) ) + RuntimeError, 'Cannot jump to location' ) ) @SharedYcmd @@ -507,7 +502,7 @@ def test_Subcommands_GetType_VariableDeclaration( self, app ): gettype_data = BuildRequest( completer_target = 'filetype_default', command_arguments = [ 'GetType' ], line_num = 5, - column_num = 5, + column_num = 9, contents = contents, filetype = 'cs', filepath = filepath )