Beispiel #1
0
from greglink import app
from greglink.lib import database

app.config.from_object('greglink.config.default_config')
app.config.from_envvar('CONFIG_FILE')

if __name__ == "__main__":
    database.init_db()
Beispiel #2
0
 def setUp(self):
     app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite://'
     app.config['TESTING'] = True
     self.app = app.test_client()
     database.init_db()