Beispiel #1
0
def app(request, instance_path, app_port):
    app = Application(instance_path=instance_path)

    # FIXME: need a working environment (DB, Redis...)
    # with app.app_context():
    #   app.create_db()

    def worker(app, port):
        app.run(port=port)

    process = multiprocessing.Process(target=worker, args=(app, app_port))

    try:
        process.start()
    except Exception as e:
        pytest.fail(e.message)

    def finalizer():
        if process:
            process.terminate()

    request.addfinalizer(finalizer)

    return app
Beispiel #2
0
def create_app():
  return Application(name='myapp')
Beispiel #3
0
def create_app():
    app = Application(name="sbe-demo")
    return app
Beispiel #4
0
def create_app():
    return Application(name="myapp")
Beispiel #5
0
# coding=utf-8
# Run as a WSGI app

from __future__ import absolute_import, print_function, unicode_literals

from abilian.sbe.app import Application

app = Application(name="sbe-demo")
Beispiel #6
0
def create_app():
    app = Application(name='sbe-demo')
    return app
Beispiel #7
0
# Run as a WSGI app

from abilian.sbe.app import Application

app = Application(name='sbe-demo')