示例#1
0
文件: dropdb.py 项目: cleanbill/ris
from __future__ import with_statement
from ris import create_app, db
from ris.core.models.user import User

app = create_app()
app.test_request_context().push()
db.drop_all()

示例#2
0
文件: tests.py 项目: cleanbill/ris
 def tearDown(self):
     db.session.remove()
     db.drop_all()