def __init__(self, program, app, argv=None): # Push options from parser to application app.options = app.config_class(config.load(program.config.options)) # Initialize application app.initialize() self.__argv = argv or sys.argv self.__class_factory = app.class_factory(program.config.options) self.__app = app self.__program = program
def __init__(self, program, app, argv=None): from noseapp.app import config # Push options from parser to application app.options = app.config_class( config.load(program.config.options), ) # Init application is here app_callback(app, 'setUpApp') self.__argv = argv or sys.argv self.__class_factory = app.class_factory(program.config.options) self.__app = app self.__program = program self.__result_proxy_factory = ResultProxyFactory( config=self.__program.config, )