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