Exemplo n.º 1
0
 def __init__(self, *args, **kwargs):
     self.app = create_app('../config_test.py')
     super(TestCase, self).__init__(*args, **kwargs)
Exemplo n.º 2
0
from beancounter import create_app
from beancounter.model import init_db

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