def setUp(self): self.db_fd, self.filename = tempfile.mkstemp() app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///%s' % self.filename app.config['TESTING'] = True model.create_tables(app.config['SQLALCHEMY_DATABASE_URI'], True) self.store = FASOpenIDStore()
#!/usr/bin/python ## These two lines are needed to run on EL6 __requires__ = ['SQLAlchemy >= 0.7', 'jinja2 >= 2.4'] import pkg_resources from fas_openid import APP from fas_openid import model model.create_tables(APP.config['SQLALCHEMY_DATABASE_URI'], True)