flask.ext.sqlalchemy.SQLAlchemy.create_all

Here are the examples of the python api flask.ext.sqlalchemy.SQLAlchemy.create_all taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

Example 1

Project: passbook_flask_example Source File: tests.py
    def setUp(self):
        temp = tempfile.mkstemp()
        self.temp = temp
        self.db_fd = temp[0]
        app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///%s' % temp[1]
        app.config['TESTING'] = True
        self.app = app.test_client()

        SQLAlchemy.create_all(db)