'get_completions' handler is now 'completions'

This commit is contained in:
Strahinja Val Markovic 2013-10-02 12:23:26 -07:00
parent 9d0a6c96d7
commit 9742302cbd
3 changed files with 6 additions and 6 deletions

View File

@ -38,7 +38,7 @@ class CompletionRequest( BaseRequest ):
def Start( self, query ):
self._request_data[ 'query' ] = query
self._response_future = self.PostDataToHandlerAsync( self._request_data,
'get_completions' )
'completions' )
def Done( self ):

View File

@ -72,7 +72,7 @@ def GetCompletions_IdentifierCompleter_Works_test():
eq_( [ BuildCompletionData( 'foo' ),
BuildCompletionData( 'foogoo' ) ],
app.post_json( '/get_completions', completion_data ).json )
app.post_json( '/completions', completion_data ).json )
@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' ),
CompletionEntryMatcher( 'x' ),
CompletionEntryMatcher( 'y' ) ) )
@ -139,7 +139,7 @@ def GetCompletions_IdentifierCompleter_SyntaxKeywordsAdded_test():
eq_( [ BuildCompletionData( 'foo' ),
BuildCompletionData( 'zoo' ) ],
app.post_json( '/get_completions', completion_data ).json )
app.post_json( '/completions', completion_data ).json )
@with_setup( Setup )
@ -166,7 +166,7 @@ def GetCompletions_UltiSnipsCompleter_Works_test():
eq_( [ BuildCompletionData( 'foo', '<snip> bar' ),
BuildCompletionData( 'zoo', '<snip> goo' ) ],
app.post_json( '/get_completions', completion_data ).json )
app.post_json( '/completions', completion_data ).json )
@with_setup( Setup )

View File

@ -79,7 +79,7 @@ def RunCompleterCommand():
request_data ) )
@app.post( '/get_completions' )
@app.post( '/completions' )
def GetCompletions():
LOGGER.info( 'Received completion request')
request_data = request.json