'get_completions' handler is now 'completions'
This commit is contained in:
parent
9d0a6c96d7
commit
9742302cbd
@ -38,7 +38,7 @@ class CompletionRequest( BaseRequest ):
|
|||||||
def Start( self, query ):
|
def Start( self, query ):
|
||||||
self._request_data[ 'query' ] = query
|
self._request_data[ 'query' ] = query
|
||||||
self._response_future = self.PostDataToHandlerAsync( self._request_data,
|
self._response_future = self.PostDataToHandlerAsync( self._request_data,
|
||||||
'get_completions' )
|
'completions' )
|
||||||
|
|
||||||
|
|
||||||
def Done( self ):
|
def Done( self ):
|
||||||
|
@ -72,7 +72,7 @@ def GetCompletions_IdentifierCompleter_Works_test():
|
|||||||
|
|
||||||
eq_( [ BuildCompletionData( 'foo' ),
|
eq_( [ BuildCompletionData( 'foo' ),
|
||||||
BuildCompletionData( 'foogoo' ) ],
|
BuildCompletionData( 'foogoo' ) ],
|
||||||
app.post_json( '/get_completions', completion_data ).json )
|
app.post_json( '/completions', completion_data ).json )
|
||||||
|
|
||||||
|
|
||||||
@with_setup( Setup )
|
@with_setup( Setup )
|
||||||
@ -111,7 +111,7 @@ int main()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
results = app.post_json( '/get_completions', completion_data ).json
|
results = app.post_json( '/completions', completion_data ).json
|
||||||
assert_that( results, has_items( CompletionEntryMatcher( 'c' ),
|
assert_that( results, has_items( CompletionEntryMatcher( 'c' ),
|
||||||
CompletionEntryMatcher( 'x' ),
|
CompletionEntryMatcher( 'x' ),
|
||||||
CompletionEntryMatcher( 'y' ) ) )
|
CompletionEntryMatcher( 'y' ) ) )
|
||||||
@ -139,7 +139,7 @@ def GetCompletions_IdentifierCompleter_SyntaxKeywordsAdded_test():
|
|||||||
|
|
||||||
eq_( [ BuildCompletionData( 'foo' ),
|
eq_( [ BuildCompletionData( 'foo' ),
|
||||||
BuildCompletionData( 'zoo' ) ],
|
BuildCompletionData( 'zoo' ) ],
|
||||||
app.post_json( '/get_completions', completion_data ).json )
|
app.post_json( '/completions', completion_data ).json )
|
||||||
|
|
||||||
|
|
||||||
@with_setup( Setup )
|
@with_setup( Setup )
|
||||||
@ -166,7 +166,7 @@ def GetCompletions_UltiSnipsCompleter_Works_test():
|
|||||||
|
|
||||||
eq_( [ BuildCompletionData( 'foo', '<snip> bar' ),
|
eq_( [ BuildCompletionData( 'foo', '<snip> bar' ),
|
||||||
BuildCompletionData( 'zoo', '<snip> goo' ) ],
|
BuildCompletionData( 'zoo', '<snip> goo' ) ],
|
||||||
app.post_json( '/get_completions', completion_data ).json )
|
app.post_json( '/completions', completion_data ).json )
|
||||||
|
|
||||||
|
|
||||||
@with_setup( Setup )
|
@with_setup( Setup )
|
||||||
|
@ -79,7 +79,7 @@ def RunCompleterCommand():
|
|||||||
request_data ) )
|
request_data ) )
|
||||||
|
|
||||||
|
|
||||||
@app.post( '/get_completions' )
|
@app.post( '/completions' )
|
||||||
def GetCompletions():
|
def GetCompletions():
|
||||||
LOGGER.info( 'Received completion request')
|
LOGGER.info( 'Received completion request')
|
||||||
request_data = request.json
|
request_data = request.json
|
||||||
|
Loading…
Reference in New Issue
Block a user