예제 #1
0
파일: __init__.py 프로젝트: xamox/beans
 def setUp(self):
     self.client = self.app.test_client()
     self.ctx = self.app.test_request_context()
     self.ctx.push()
     init_db()
예제 #2
0
파일: init_db.py 프로젝트: xamox/beans
from beancounter import create_app
from beancounter.model import init_db

app = create_app('../config.py')
with app.test_request_context():
    init_db()