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
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")})
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')})
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
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