def test_dict_config_initapp(app):
cache = Cache()
cache.init_app(app, config={'CACHE_TYPE': 'simple'})
from werkzeug.contrib.cache import SimpleCache
assert isinstance(app.extensions['cache'][cache], SimpleCache)
评论列表
文章目录