[2.0.x] Refs #27318 -- Made DummyCache.set_many() return a list for consistency with other backends.

Backport of abacd09f07 from master
This commit is contained in:
Adam Johnson 2017-10-30 15:25:33 +00:00 committed by Tim Graham
parent 6b5f2e3b79
commit ea901eb9ad
2 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ class DummyCache(BaseCache):
return False
def set_many(self, data, timeout=DEFAULT_TIMEOUT, version=None):
pass
return []
def delete_many(self, keys, version=None):
pass

View File

@ -175,8 +175,8 @@ class DummyCacheTests(SimpleTestCase):
def test_set_many(self):
"set_many does nothing for the dummy cache backend"
cache.set_many({'a': 1, 'b': 2})
cache.set_many({'a': 1, 'b': 2}, timeout=2, version='1')
self.assertEqual(cache.set_many({'a': 1, 'b': 2}), [])
self.assertEqual(cache.set_many({'a': 1, 'b': 2}, timeout=2, version='1'), [])
def test_delete_many(self):
"delete_many does nothing for the dummy cache backend"