示例#1
0
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'])
示例#2
0
文件: test_kit.py 项目: daqing15/kit
 def test_missing_conf_file(self):
   get_kit('/another/missing/path.cfg')
示例#3
0
文件: test_kit.py 项目: daqing15/kit
 def setup(self):
   self.kit = get_kit('../../examples/tracker/conf.yaml')
   self.client = self.kit.flasks[0].test_client()
示例#4
0
文件: test_kit.py 项目: daqing15/kit
 def test_config_path(self):
   kit = get_kit()
   eq_(self.kit.__dict__, kit.__dict__)
示例#5
0
文件: test_kit.py 项目: daqing15/kit
def test_empty_kit_path():
  kit = get_kit()
示例#6
0
 def test_missing_conf_file(self):
     get_kit('/another/missing/path.cfg')
示例#7
0
 def test_config_path(self):
     kit = get_kit()
     eq_(self.kit.__dict__, kit.__dict__)
示例#8
0
 def setup(self):
     self.kit = get_kit('../../examples/tracker/conf.yaml')
     self.client = self.kit.flasks[0].test_client()
示例#9
0
def test_empty_kit_path():
    kit = get_kit()