@pytest.fixture()
def make_app(test_params):
 apps = []
 syspath = sys.path[:]
 def make(*args, **kwargs):
  (status, warning) = (StringIO(), StringIO())
  kwargs.setdefault('status', status)
  kwargs.setdefault('warning', warning)
  app_ = util.SphinxTestApp(*args, **kwargs)
  apps.append(app_)
  if test_params['shared_result']:
   app_ = SphinxTestAppWrapperForSkipBuilding(app_)
  return app_
 (yield make)
 sys.path[:] = syspath
 for app_ in apps:
  app_.cleanup()

@ pytest . fixture ( ) def make_app ( test_params ) : apps = [ ] syspath = sys . path [ : ] def make ( * args , ** kwargs ) : ( status , warning ) = ( StringIO ( ) , StringIO ( ) ) kwargs . setdefault ( 'status' , status ) kwargs . setdefault ( 'warning' , warning ) app_ = util . SphinxTestApp ( * args , ** kwargs ) apps . append ( app_ ) if test_params [ 'shared_result' ] : app_ = SphinxTestAppWrapperForSkipBuilding ( app_ ) return app_ ( yield make ) sys . path [ : ] = syspath for app_ in apps : app_ . cleanup ( )
factory function that creates a new coolmagicapplication object .