Esempio n. 1
0
    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
Esempio n. 2
0
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")})
Esempio n. 3
0
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')})
Esempio n. 4
0
    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
Esempio n. 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