Exemplo 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()
Exemplo n.º 2
0
Arquivo: run.py Projeto: 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
Exemplo n.º 4
0
def app():
    app = create_app()
    return app