def main(): cwd = os.getcwd() import sys sys.path.append(cwd) del sys args = docopt(__doc__) configpath = args['<configpath>'] configpath = os.path.join(cwd, configpath) app.load_component(layout='service', backend='ini', path=configpath) components = SyncComponents() console_recorder('DEBUG', "[Fast command]\nyou can do anything like in fastweb") console = HistoryConsole(locals={'self': components}) console.interact()
def test_load_component(self): app.load_component(layout='web', backend='ini', path='fastweb/test/config/component.ini')
def test_setup(self): configer = app.load_component('web', backend='ini', path='fastweb/test/config/service.ini') Manager.setup('web', configer)
def test_start_worker(): app.load_component(layout='task', backend='ini', path='config/worker.ini') start_task_worker()