diff options
author | Erik Johnston <erik@matrix.org> | 2016-08-19 15:02:38 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-08-19 15:02:38 +0100 |
commit | dc76a3e909535d99f0b6b4a76279a14685324dc4 (patch) | |
tree | 9263f4befa5e83700387ae231ad1910674b7470a /tests/storage/test__base.py | |
parent | Move _bulk_get_push_rules_for_room to storage layer (diff) | |
download | synapse-dc76a3e909535d99f0b6b4a76279a14685324dc4.tar.xz |
Make cache_context an explicit option
Diffstat (limited to 'tests/storage/test__base.py')
-rw-r--r-- | tests/storage/test__base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/storage/test__base.py b/tests/storage/test__base.py index ed074ce9ec..eab0c8d219 100644 --- a/tests/storage/test__base.py +++ b/tests/storage/test__base.py @@ -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) |