Exemplo n.º 1
0
 def Wrapper( *args, **kwargs ):
   ycm = YouCompleteMe( MakeUserOptions( custom_options ) )
   WaitUntilReady()
   ycm.CheckIfServerIsReady()
   try:
     test( ycm, *args, **kwargs )
   finally:
     StopServer( ycm )
Exemplo n.º 2
0
 def Wrapper( *args, **kwargs ):
   with UserOptions( custom_options ):
     ycm = YouCompleteMe()
     WaitUntilReady()
     ycm.CheckIfServerIsReady()
     try:
       test_utils.VIM_MATCHES_FOR_WINDOW.clear()
       test( ycm, *args, **kwargs )
     finally:
       StopServer( ycm )
Exemplo n.º 3
0
 def Wrapper(test_case_instance, *args, **kwargs):
     with UserOptions(custom_options):
         ycm = YouCompleteMe()
         WaitUntilReady()
         ycm.CheckIfServerIsReady()
         try:
             test_utils.VIM_PROPS_FOR_BUFFER.clear()
             return test(test_case_instance, ycm, *args, **kwargs)
         finally:
             StopServer(ycm)
Exemplo n.º 4
0
def ycm(request):
    custom_options = request.param
    with UserOptions(custom_options):
        ycm = YouCompleteMe()
        WaitUntilReady()
        ycm.CheckIfServerIsReady()
        try:
            test_utils.VIM_MATCHES_FOR_WINDOW.clear()
            yield ycm
        finally:
            StopServer(ycm)