def setUp(self): super(TestApp, self).setUp() self.app = create_app() self.app.config['TESTING'] = True self.gallery = TemporaryDirectory() self.app.config['GALLERY_ROOT'] = self.gallery.name self.client = self.app.test_client()
# -*- coding: utf-8 -*- """WSGI and debug entry-points.""" from original.app import create_app app = create_app() application = app if __name__ == '__main__': app.run(debug=True)