def test_starlette(port, mode, kwargs): if kwargs['url_prefix'] in ('/', ''): return proc = Process(target=server_process, args=(port, mode), kwargs=kwargs) proc.start() send_requests(port, mode, kwargs) proc.terminate()
def test_tornado(port, mode, kwargs): proc = Process(target=server_process, args=(port, mode), kwargs=kwargs) proc.start() send_requests(port, mode, kwargs) proc.terminate()