summaryrefslogtreecommitdiff
path: root/tests/cache
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2014-09-05 20:06:02 +0200
committerClaude Paroz <claude@2xlibre.net>2014-09-05 20:06:02 +0200
commit885ff6845e54511022677c1f28b84ddd4f2165dd (patch)
treefd3b2f1bcc32b69178a20b961b8ecffc71b8ab98 /tests/cache
parent5d044339037be879a11b03fe8bd8c3ef1d520b1a (diff)
Revert "Fixed #23384 -- Allowed overriding part of a dictionary-type setting"
This reverts commit 66757fee7e921ad4c35e0b3f80c25e026100b31c. Discussions have led to think that this functionality does not bring significant benefits to justify the added complexity. Read also discussions on ticket #22734.
Diffstat (limited to 'tests/cache')
-rw-r--r--tests/cache/tests.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/cache/tests.py b/tests/cache/tests.py
index 70a5e1165d..4677791fcd 100644
--- a/tests/cache/tests.py
+++ b/tests/cache/tests.py
@@ -522,7 +522,6 @@ class BaseCacheTests(object):
def _perform_cull_test(self, cull_cache, initial_count, final_count):
# Create initial cache key entries. This will overflow the cache,
# causing a cull.
- cull_cache.clear()
for i in range(1, initial_count):
cull_cache.set('cull%d' % i, 'value', 1000)
count = 0
@@ -919,10 +918,7 @@ class DBCacheTests(BaseCacheTests, TransactionTestCase):
stdout=stdout
)
self.assertEqual(stdout.getvalue(),
- "Cache table 'test cache table' already exists.\n" * len([
- k for k, v in settings.CACHES.items()
- if v['BACKEND'] == 'django.core.cache.backends.db.DatabaseCache'])
- )
+ "Cache table 'test cache table' already exists.\n" * len(settings.CACHES))
def test_createcachetable_with_table_argument(self):
"""