def test(service): try: chdir(get_path("test_%s.py" % service, "tests")) except Exception: raise RuntimeError(_SERVICE_TS) else: return exe("py.test").returncode
def run(service): try: chdir(get_path("%s.py" % service, "services")) except Exception: raise RuntimeError(_SERVICE_PY) else: exe(_SERVICE_EX % (service, get_loc()))
def test(service): chdir(get_path("test_%s.py" % service, "tests")) exe("py.test")
def run(service): chdir(get_path("%s.py" % service, "services")) exe("nameko run %s --config %s" % ( service, get_loc()) )
def test(service): return exe("py.test", get_path("test_%s.py" % service, "tests")).returncode
def run(service): exe(_SERVICE_EX % (service, get_loc()), get_path("%s.py" % service, "services"))