def create_app(self): app = super(ImageFieldTest, self).create_app() self._instance_path = app.instance_path app.instance_path = tempfile.mkdtemp() fs.init_app(app, storage, tmp) app.register_blueprint(blueprint) return app
def init_app(app): if 'BUCKETS_PREFIX' not in app.config: app.config['BUCKETS_PREFIX'] = '/s' fs.init_app(app, resources, avatars, images, chunks, tmp)