diff options
author | Nick Pope <nick.pope@flightdataservices.com> | 2020-08-19 14:05:05 +0100 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-08-24 09:41:21 +0200 |
commit | b5acb9db751c3e179cdd55398432dfad2c259628 (patch) | |
tree | e65317383df2ededeaa0dea0745feadafd332fcd /tests/cache | |
parent | 9e04b242eedc42d8d77431ef71ffa5f23eadacdb (diff) | |
download | django-b5acb9db751c3e179cdd55398432dfad2c259628.tar.gz |
Fixed #31907 -- Fixed missing validate_key() calls in cache backends.
Diffstat (limited to 'tests/cache')
-rw-r--r-- | tests/cache/tests.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/cache/tests.py b/tests/cache/tests.py index 260717c0b6..865f0cefc8 100644 --- a/tests/cache/tests.py +++ b/tests/cache/tests.py @@ -656,6 +656,7 @@ class BaseCacheTests: ('set', [key, 1]), ('incr', [key]), ('decr', [key]), + ('touch', [key]), ('delete', [key]), ('get_many', [[key, 'b']]), ('set_many', [{key: 1, 'b': 2}]), @@ -1306,11 +1307,15 @@ class BaseMemcachedTests(BaseCacheTests): msg = expected_warning.replace(key, cache.make_key(key)) tests = [ ('add', [key, 1]), + ('get', [key]), ('set', [key, 1]), ('incr', [key]), ('decr', [key]), + ('touch', [key]), + ('delete', [key]), ('get_many', [[key, 'b']]), ('set_many', [{key: 1, 'b': 2}]), + ('delete_many', [{key: 1, 'b': 2}]), ] for operation, args in tests: with self.subTest(operation=operation): |