def setUp(self): """ Create database, set testing mode, create testing client, get template tracking set up. """ app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///test.db" app.config["TESTING"] = True self.app = app.test_client() db.create_all() self.templates = [] template_rendered.connect(self.addTemplate)
def setUp(self): app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///test.db' app.config['TESTING'] = True db.create_all()
from eh import app, db db.create_all() app.run(debug=True)