Merge "Fix cache decorator tests"

This commit is contained in:
Jenkins 2016-05-10 21:17:10 +00:00 committed by Gerrit Code Review
commit 2cc70f2659

View File

@ -41,6 +41,7 @@ class TestDecorators(base.TestBase):
conf = cfg.ConfigOpts()
oslo_cache.register_config(conf)
conf.cache.backend = 'dogpile.cache.memory'
conf.cache.enabled = True
cache = oslo_cache.get_cache(conf)
sample_project = {
@ -99,6 +100,7 @@ class TestDecorators(base.TestBase):
conf = cfg.ConfigOpts()
oslo_cache.register_config(conf)
conf.cache.backend = 'dogpile.cache.memory'
conf.cache.enabled = True
cache = oslo_cache.get_cache(conf)
class TestClass(object):