def setUp(self): db.create_all() a = Player('') a.admin = True db.session.add(a) db.session.commit() self.admin = a with self.client.session_transaction() as sess: sess['user_id'] = a.id
def init_db(): config_app(app, **config) from lobbypy.utils import db db.create_all()
def setUp(self): db.create_all()
def setUp(self): db.create_all() self.ctxs = []
def init_db(): config_app(app) from lobbypy.utils import db db.create_all()