Renaming server.py to ycmd.py

This commit is contained in:
Strahinja Val Markovic 2013-09-24 14:04:08 -07:00
parent dd2445db06
commit 4ac5466d80
3 changed files with 6 additions and 6 deletions

View File

@ -18,7 +18,7 @@
# along with YouCompleteMe. If not, see <http://www.gnu.org/licenses/>.
from webtest import TestApp
from .. import server
from .. import ycmd
from ..responses import BuildCompletionData
from nose.tools import ok_, eq_
import bottle
@ -41,7 +41,7 @@ def RequestDataForFileWithContents( filename, contents ):
def GetCompletions_IdentifierCompleterWorks_test():
app = TestApp( server.app )
app = TestApp( ycmd.app )
event_data = RequestDataForFileWithContents( '/foo/bar', 'foo foogoo ba' )
event_data.update( {
'event_name': 'FileReadyToParse',
@ -64,7 +64,7 @@ def GetCompletions_IdentifierCompleterWorks_test():
def GetCompletions_IdentifierCompleter_SyntaxKeywordsAdded_test():
app = TestApp( server.app )
app = TestApp( ycmd.app )
event_data = RequestDataForFileWithContents( '/foo/bar', '' )
event_data.update( {
'event_name': 'FileReadyToParse',
@ -88,7 +88,7 @@ def GetCompletions_IdentifierCompleter_SyntaxKeywordsAdded_test():
def FiletypeCompletionAvailable_Works_test():
app = TestApp( server.app )
app = TestApp( ycmd.app )
request_data = {
'filetypes': ['cpp']
}
@ -98,7 +98,7 @@ def FiletypeCompletionAvailable_Works_test():
def UserOptions_Works_test():
app = TestApp( server.app )
app = TestApp( ycmd.app )
options = app.get( '/user_options' ).json
ok_( len( options ) )

View File

@ -232,5 +232,5 @@ def _GetTagFiles():
def _PathToServerScript():
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' )