예제 #1
0
 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
예제 #2
0
def init_db():
    config_app(app, **config)
    from lobbypy.utils import db
    db.create_all()
예제 #3
0
 def setUp(self):
     db.create_all()
 def setUp(self):
     db.create_all()
     self.ctxs = []
 def setUp(self):
     db.create_all()
예제 #6
0
 def setUp(self):
     db.create_all()
     self.ctxs = []
예제 #7
0
def init_db():
    config_app(app)
    from lobbypy.utils import db
    db.create_all()