def setUp(self):
     db.init(TestingConfig.DB_NAME,
             host=TestingConfig.DB_HOST,
             user=TestingConfig.DB_USER,
             password=TestingConfig.DB_PASS,
             port=TestingConfig.DB_PORT)
     db.create_tables([User], safe=True)
Beispiel #2
0
def create_tables():
    with db:
        db.create_tables([Notification])
Beispiel #3
0
def bootstrap():
    db.connect(reuse_if_open=True)
    db.create_tables([Tokens, AccessRequests])
    db.close()
def create_tables():
    with db:
        db.create_tables([Sale])
Beispiel #5
0
def connect_to_db():
    db.create_tables([Route, Flight])
def create_tables():
    with db:
        db.create_tables([User])
Beispiel #7
0
def create_tables():
    with db:
        db.create_tables([Product])