コード例 #1
0
 def setup_class(cls):
     db.create_all()
     testing.util.prime_db(db)
コード例 #2
0
ファイル: qnd_init.py プロジェクト: tflink/remote_install
#!/bin/python

# This is a VERY quick and dirty way to initialize what needs to be setup
# to get remote_install to run.
# IT WILL DELETE YOUR CURRENT DATABASE!!
# be careful when you use it.

from remote_install.models.user import User
from remote_install import db

if __name__ == '__main__':
    db.drop_all()
    db.create_all()

    user = User('admin', 'password', 'admin@localhost', is_admin=True)
    db.session.add(user)
    db.session.commit()


コード例 #3
0
ファイル: testfunc_db.py プロジェクト: tflink/remote_install
 def setup_method(self, method):
     db.drop_all()
     db.create_all()
コード例 #4
0
 def setup_class(cls):
     db.create_all()
     testing.util.prime_db(db)
コード例 #5
0
ファイル: testfunc_db.py プロジェクト: tflink/remote_install
 def setup_method(self, method):
     db.drop_all()
     db.create_all()