Renaming server.py to ycmd.py
This commit is contained in:
parent
dd2445db06
commit
4ac5466d80
@ -18,7 +18,7 @@
|
|||||||
# along with YouCompleteMe. If not, see <http://www.gnu.org/licenses/>.
|
# along with YouCompleteMe. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from webtest import TestApp
|
from webtest import TestApp
|
||||||
from .. import server
|
from .. import ycmd
|
||||||
from ..responses import BuildCompletionData
|
from ..responses import BuildCompletionData
|
||||||
from nose.tools import ok_, eq_
|
from nose.tools import ok_, eq_
|
||||||
import bottle
|
import bottle
|
||||||
@ -41,7 +41,7 @@ def RequestDataForFileWithContents( filename, contents ):
|
|||||||
|
|
||||||
|
|
||||||
def GetCompletions_IdentifierCompleterWorks_test():
|
def GetCompletions_IdentifierCompleterWorks_test():
|
||||||
app = TestApp( server.app )
|
app = TestApp( ycmd.app )
|
||||||
event_data = RequestDataForFileWithContents( '/foo/bar', 'foo foogoo ba' )
|
event_data = RequestDataForFileWithContents( '/foo/bar', 'foo foogoo ba' )
|
||||||
event_data.update( {
|
event_data.update( {
|
||||||
'event_name': 'FileReadyToParse',
|
'event_name': 'FileReadyToParse',
|
||||||
@ -64,7 +64,7 @@ def GetCompletions_IdentifierCompleterWorks_test():
|
|||||||
|
|
||||||
|
|
||||||
def GetCompletions_IdentifierCompleter_SyntaxKeywordsAdded_test():
|
def GetCompletions_IdentifierCompleter_SyntaxKeywordsAdded_test():
|
||||||
app = TestApp( server.app )
|
app = TestApp( ycmd.app )
|
||||||
event_data = RequestDataForFileWithContents( '/foo/bar', '' )
|
event_data = RequestDataForFileWithContents( '/foo/bar', '' )
|
||||||
event_data.update( {
|
event_data.update( {
|
||||||
'event_name': 'FileReadyToParse',
|
'event_name': 'FileReadyToParse',
|
||||||
@ -88,7 +88,7 @@ def GetCompletions_IdentifierCompleter_SyntaxKeywordsAdded_test():
|
|||||||
|
|
||||||
|
|
||||||
def FiletypeCompletionAvailable_Works_test():
|
def FiletypeCompletionAvailable_Works_test():
|
||||||
app = TestApp( server.app )
|
app = TestApp( ycmd.app )
|
||||||
request_data = {
|
request_data = {
|
||||||
'filetypes': ['cpp']
|
'filetypes': ['cpp']
|
||||||
}
|
}
|
||||||
@ -98,7 +98,7 @@ def FiletypeCompletionAvailable_Works_test():
|
|||||||
|
|
||||||
|
|
||||||
def UserOptions_Works_test():
|
def UserOptions_Works_test():
|
||||||
app = TestApp( server.app )
|
app = TestApp( ycmd.app )
|
||||||
options = app.get( '/user_options' ).json
|
options = app.get( '/user_options' ).json
|
||||||
ok_( len( options ) )
|
ok_( len( options ) )
|
||||||
|
|
||||||
|
@ -232,5 +232,5 @@ def _GetTagFiles():
|
|||||||
|
|
||||||
def _PathToServerScript():
|
def _PathToServerScript():
|
||||||
dir_of_current_script = os.path.dirname( os.path.abspath( __file__ ) )
|
dir_of_current_script = os.path.dirname( os.path.abspath( __file__ ) )
|
||||||
return os.path.join( dir_of_current_script, 'server/server.py' )
|
return os.path.join( dir_of_current_script, 'server/ycmd.py' )
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user