summaryrefslogtreecommitdiff
path: root/tests/cache
diff options
context:
space:
mode:
authorNick Pope <nick@nickpope.me.uk>2021-08-26 20:19:36 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-09-02 12:47:04 +0200
commitb8824e8d17434957650517370f739e340867c381 (patch)
tree905b5ad4ae29d39fa7027f3954771cf2316bf5ba /tests/cache
parentdca4c2ff764ab94848274952eee4319a638be1d2 (diff)
Refs #31907 -- Fixed incorrect argument for delete_many() in cache tests.
Diffstat (limited to 'tests/cache')
-rw-r--r--tests/cache/tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/cache/tests.py b/tests/cache/tests.py
index cea70463d2..f2b70a4919 100644
--- a/tests/cache/tests.py
+++ b/tests/cache/tests.py
@@ -213,7 +213,7 @@ class DummyCacheTests(SimpleTestCase):
def test_delete_many_invalid_key(self):
msg = KEY_ERRORS_WITH_MEMCACHED_MSG % ':1:key with spaces'
with self.assertWarnsMessage(CacheKeyWarning, msg):
- cache.delete_many({'key with spaces': 'foo'})
+ cache.delete_many(['key with spaces'])
def test_clear(self):
"clear does nothing for the dummy cache backend"
@@ -700,7 +700,7 @@ class BaseCacheTests:
('delete', [key]),
('get_many', [[key, 'b']]),
('set_many', [{key: 1, 'b': 2}]),
- ('delete_many', [{key: 1, 'b': 2}]),
+ ('delete_many', [[key, 'b']]),
]
try:
for operation, args in tests:
@@ -1409,7 +1409,7 @@ class BaseMemcachedTests(BaseCacheTests):
('delete', [key]),
('get_many', [[key, 'b']]),
('set_many', [{key: 1, 'b': 2}]),
- ('delete_many', [{key: 1, 'b': 2}]),
+ ('delete_many', [[key, 'b']]),
]
for operation, args in tests:
with self.subTest(operation=operation):