Пример #1
0
def app():

    application = create_app()
    application.app_context().push()
    application.db.create_all()

    return application
Пример #2
0
from users.app import create_app
from users.models import UserModel

if __name__ == '__main__':
    app = create_app()
    app.app_context().push()
    app.db.drop_all()
    app.db.create_all()
Пример #3
0
 def setUp(self):
     self.app = create_app('TEST').app
Пример #4
0
 def setUp(self):
     app = create_app("TEST")
     self.app = app.app
     self.app.config['TESTING'] = True
Пример #5
0
from users.app import create_app

application = create_app()