示例#1
0
def test(service):
    try:
        chdir(get_path("test_%s.py" % service, "tests"))
    except Exception:
        raise RuntimeError(_SERVICE_TS)
    else:
        return exe("py.test").returncode
示例#2
0
def run(service):
    try:
        chdir(get_path("%s.py" % service, "services"))
    except Exception:
        raise RuntimeError(_SERVICE_PY)
    else:
        exe(_SERVICE_EX % (service, get_loc()))
示例#3
0
def test(service):
    chdir(get_path("test_%s.py" % service, "tests"))
    exe("py.test")
示例#4
0
def run(service):
    chdir(get_path("%s.py" % service, "services"))
    exe("nameko run %s --config %s" % (
        service, get_loc())
        )
示例#5
0
def test(service):
    return exe("py.test", get_path("test_%s.py" % service, "tests")).returncode
示例#6
0
def run(service):
    exe(_SERVICE_EX % (service, get_loc()),
        get_path("%s.py" % service, "services"))