def main(): """Command line parser.""" arguments = docopt(__doc__, version=__version__) kit = get_kit(arguments['CONF']) if arguments['shell']: run_shell(kit) elif arguments['server']: run_server( kit, local=arguments['--local'], port=int(arguments['--port']), debug=arguments['--debug'], ) elif arguments['worker']: run_worker(kit, raw=arguments['RAW']) elif arguments['flower']: run_flower(kit, raw=arguments['RAW'])
def test_missing_conf_file(self): get_kit('/another/missing/path.cfg')
def setup(self): self.kit = get_kit('../../examples/tracker/conf.yaml') self.client = self.kit.flasks[0].test_client()
def test_config_path(self): kit = get_kit() eq_(self.kit.__dict__, kit.__dict__)
def test_empty_kit_path(): kit = get_kit()