def serve(host, port, debug): """Run a server to handle parsing requests.""" from kordesii.tools import server if debug: os.environ["FLASK_ENV"] = "development" app = server.create_app() app.run(host=host, port=port, use_reloader=False)
def client(): app = create_app() with app.test_client() as client: yield client