Exemplo n.º 1
0
def test_build_returns_self(tmpdir):
    s = Local(directory=str(tmpdir))
    assert s.build() is s

    f = Flow("test")
    s.add_flow(f)
    assert s.build() is s
Exemplo n.º 2
0
def test_build_returns_self():
    with tempfile.TemporaryDirectory() as tmpdir:
        s = Local(directory=tmpdir)
        assert s.build() is s

        f = Flow("test")
        s.add_flow(f)
        assert s.build() is s
Exemplo n.º 3
0
def test_build_healthcheck_returns_on_no_flows(tmpdir):
    s = Local(directory=str(tmpdir))
    assert s.build()
Exemplo n.º 4
0
def test_build_healthchecks(tmpdir):
    s = Local(directory=str(tmpdir))
    flow = Flow("TestFlow")
    s.add_flow(flow)
    assert s.build()
Exemplo n.º 5
0
def test_build_healthcheck_returns_on_no_flows():
    with tempfile.TemporaryDirectory() as tmpdir:
        s = Local(directory=tmpdir)
        assert s.build()
Exemplo n.º 6
0
def test_build_healthchecks():
    with tempfile.TemporaryDirectory() as tmpdir:
        s = Local(directory=tmpdir)
        flow = Flow("TestFlow")
        s.add_flow(flow)
        assert s.build()