示例#1
0
def test_iter_proc():
    serve.start()
    for server in iter_proc(serve.servers):
        server.stop()
示例#2
0
def test_start_with_custom_root(tmpdir_factory):
    tdir = tmpdir_factory.mktemp("foo")
    serve.start(str(tdir))
    for server in iter_proc(serve.servers):
        assert server.doc_root == tdir
示例#3
0
def teardown_function(func):
    for server in [
            server for server in iter_proc(serve.servers) if server.is_alive
    ]:
        server.stop()
        server.kill()
示例#4
0
def test_iter_proc():
    serve.start()
    for server in iter_proc(serve.servers):
        server.stop()
示例#5
0
def test_start_with_custom_root(tmpdir_factory):
    tdir = tmpdir_factory.mktemp("foo")
    serve.start(str(tdir))
    for server in iter_proc(serve.servers):
        assert server.doc_root == tdir
示例#6
0
def teardown_function(func):
    for server in [server for server in iter_proc(serve.servers) if server.is_alive]:
        server.stop()
        server.kill()