Пример #1
0
    def setup(self):
        app.config['TESTING'] = True
        app.config['WTF_CSRF_ENABLED'] = False
        app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///:memory:'
        self.app = app.test_client()

        db.create_all()
        self.db = db
Пример #2
0
from league import app
from league import db

db.create_all()
app.run()