Ejemplo n.º 1
0
def app():
    """Create application for the tests."""
    _app = create_app(testing=True)

    ctx = _app.test_request_context()
    ctx.push()
    yield _app
    ctx.pop()
Ejemplo n.º 2
0
Archivo: run.py Proyecto: hur/urlshort
from urlshort import create_app
from urlshort.models import db
from urlshort.strings import Strings

app = create_app()


@app.cli.command()
def createdb():
    db.create_all()
def app():
    app = create_app()
    yield app
Ejemplo n.º 4
0
def app():
    app = create_app()
    return app