From 9742302cbdc85b60b86fdd1651e928b713cb455e Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Wed, 2 Oct 2013 12:23:26 -0700 Subject: [PATCH] 'get_completions' handler is now 'completions' --- python/ycm/client/completion_request.py | 2 +- python/ycm/server/tests/basic_test.py | 8 ++++---- python/ycm/server/ycmd.py | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/python/ycm/client/completion_request.py b/python/ycm/client/completion_request.py index a7c8541e..d55ade1e 100644 --- a/python/ycm/client/completion_request.py +++ b/python/ycm/client/completion_request.py @@ -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 ): diff --git a/python/ycm/server/tests/basic_test.py b/python/ycm/server/tests/basic_test.py index 74b24e13..eebce437 100644 --- a/python/ycm/server/tests/basic_test.py +++ b/python/ycm/server/tests/basic_test.py @@ -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', ' bar' ), BuildCompletionData( 'zoo', ' goo' ) ], - app.post_json( '/get_completions', completion_data ).json ) + app.post_json( '/completions', completion_data ).json ) @with_setup( Setup ) diff --git a/python/ycm/server/ycmd.py b/python/ycm/server/ycmd.py index fb290c8b..b23d0b34 100755 --- a/python/ycm/server/ycmd.py +++ b/python/ycm/server/ycmd.py @@ -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