Make cache_context an explicit option

This commit is contained in:
Erik Johnston 2016-08-19 15:02:38 +01:00
parent f164fd9220
commit dc76a3e909
3 changed files with 30 additions and 11 deletions

View file

@ -211,7 +211,7 @@ class CacheDecoratorTestCase(unittest.TestCase):
callcount[0] += 1
return key
@cached()
@cached(cache_context=True)
def func2(self, key, cache_context):
callcount2[0] += 1
return self.func(key, cache_context=cache_context)
@ -244,7 +244,7 @@ class CacheDecoratorTestCase(unittest.TestCase):
callcount[0] += 1
return key
@cached()
@cached(cache_context=True)
def func2(self, key, cache_context):
callcount2[0] += 1
return self.func(key, cache_context=cache_context)