Exemplo n.º 1
0
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)
Exemplo n.º 2
0
def client():
    app = create_app()
    with app.test_client() as client:
        yield client