예제 #1
0
    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)
예제 #2
0
 def setUp(self):
     app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///test.db'
     app.config['TESTING'] = True
     db.create_all()
예제 #3
0
from eh import app, db
db.create_all()
app.run(debug=True)