def test_iter_proc(): serve.start() for server in iter_proc(serve.servers): server.stop()
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
def teardown_function(func): for server in [ server for server in iter_proc(serve.servers) if server.is_alive ]: server.stop() server.kill()
def teardown_function(func): for server in [server for server in iter_proc(serve.servers) if server.is_alive]: server.stop() server.kill()