def setUp(self): app.config["DEBUG"] = True app.config["TESTING"] = True app.config["SQLALCHEMY_ECHO"] = False app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite://" # in-memory self.client = app.test_client() db.create_all()
#!/usr/bin/env python __author__ = "Benoit Delbosc" __copyright__ = "Copyright (C) 2011 Nuxeo SA <http://nuxeo.com>" from restapp import app from restapp import db if __name__ == '__main__': db.create_all() app.logger.info('Starting') app.run()