示例#1
0
文件: __init__.py 项目: vheon/ycmd
    def Wrapper(*args, **kwargs):
        old_server_state = handlers._server_state

        try:
            app = SetUpApp()
            app.post_json("/ignore_extra_conf_file", {"filepath": PathToTestFile(".ycm_extra_conf.py")})
            test(app, *args, **kwargs)
        finally:
            handlers._server_state = old_server_state
示例#2
0
文件: __init__.py 项目: vheon/ycmd
def setUpPackage():
    """Initializes the ycmd server as a WebTest application that will be shared
  by all tests using the SharedYcmd decorator in this package. Additional
  configuration that is common to these tests, like starting a semantic
  subserver, should be done here."""
    global shared_app

    shared_app = SetUpApp()
    shared_app.post_json("/ignore_extra_conf_file", {"filepath": PathToTestFile(".ycm_extra_conf.py")})
示例#3
0
文件: __init__.py 项目: yulei/ycmd
def setUpPackage():
    """Initializes the ycmd server as a WebTest application that will be shared
  by all tests using the SharedYcmd decorator in this package. Additional
  configuration that is common to these tests, like starting a semantic
  subserver, should be done here."""
    global shared_app

    shared_app = SetUpApp()
    shared_app.post_json('/ignore_extra_conf_file',
                         {'filepath': PathToTestFile('.ycm_extra_conf.py')})
示例#4
0
文件: __init__.py 项目: yulei/ycmd
    def Wrapper(*args, **kwargs):
        old_server_state = handlers._server_state

        try:
            app = SetUpApp()
            app.post_json('/ignore_extra_conf_file',
                          {'filepath': PathToTestFile('.ycm_extra_conf.py')})
            test(app, *args, **kwargs)
        finally:
            handlers._server_state = old_server_state
示例#5
0
 def Wrapper( *args, **kwargs ):
   old_server_state = handlers._server_state
   app = SetUpApp( custom_options )
   try:
     app.post_json(
       '/ignore_extra_conf_file',
       { 'filepath': PathToTestFile( '.ycm_extra_conf.py' ) } )
     test( app, *args, **kwargs )
   finally:
     handlers._server_state = old_server_state