summaryrefslogtreecommitdiff
path: root/tests/cache
AgeCommit message (Collapse)Author
2017-10-30[2.0.x] Refs #27318 -- Made DummyCache.set_many() return a list for ↵Adam Johnson
consistency with other backends. Backport of abacd09f07f4bb0aa1a3a32bc6e3c3570fa76912 from master
2017-10-10[2.0.x] Fixed #28601 -- Prevented cache.get_or_set() from caching None if ↵Daniel Tao
default is a callable that returns None. Backport of 4d60261b2a77460b4c127c3d832518b95e11a0ac from master
2017-09-06Fixed #27318 -- Made cache.set_many() return the list of failed keys.Olivier Tabone
2017-09-03Fixed #28500 -- Fixed crash in FileBasedCache._is_expired() if the cache ↵caleb logan
file is empty.
2017-06-16Refs #27787 -- Corrected or removed invalid call_command() options.Chandrakant Kumar
2017-05-27Fixed #28249 -- Removed unnecessary dict.keys() calls.Jon Dufresne
iter(dict) is equivalent to iter(dict.keys()).
2017-05-24Refs #27804 -- Used subTest() in several tests.Bruno Alla
2017-03-17Replaced type-specific assertions with assertEqual().Tim Graham
Python docs say, "it's usually not necessary to invoke these methods directly."
2017-02-09Refs #23919 -- Removed default 'utf-8' argument for str.encode()/decode().Tim Graham
2017-02-03Fixed spelling of "nonexistent".Tim Graham
2017-01-25Refs #23919 -- Removed misc Python 2/3 references.Tim Graham
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2017-01-25Refs #23919 -- Replaced errno checking with PEP 3151 exceptions.Tim Graham
2017-01-24Removed unneeded force_text calls in the test suiteClaude Paroz
2017-01-21Refs #23919 -- Removed misc references to Python 2.Tim Graham
2017-01-20Refs #23919 -- Removed django.test.mock Python 2 compatibility shim.Tim Graham
2017-01-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
2017-01-18Refs #23919 -- Replaced io.open() with open().Aymeric Augustin
io.open() is an alias for open() on Python 3.
2017-01-18Refs #23919 -- Removed most of remaining six usageClaude Paroz
Thanks Tim Graham for the review.
2017-01-18Refs #23919 -- Removed six.PY2/PY3 usageClaude Paroz
Thanks Tim Graham for the review.
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2016-11-10Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za
2016-10-27Fixed #27327 -- Simplified time zone handling by requiring pytz.Tim Graham
2016-10-10Fixed #26447 -- Deprecated settings.USE_ETAGS in favor of ↵Denis Cornehl
ConditionalGetMiddleware.
2016-09-15Refs #5133 -- Isolated test_close() cache test.Tim Graham
2016-09-14Fixed #27211 -- Made UpdateCacheMiddleware include caching headers for "304 ↵Rinat Khabibiev
Not Modified" responses.
2016-09-09Normalized spelling of ETag.Tim Graham
2016-09-02Fixed #11331 -- Stopped closing pylibmc connections after each request.Ed Morley
libmemcached manages its own connections, so isn't affected by refs #5133.
2016-09-02Refs #5133 -- Tested memcached connection closing after each request.Ed Morley
2016-08-31Fixed #27152 -- Supported comma delimiter in memcached LOCATION string.Ed Morley
2016-08-31Added a test for multiple memcached servers in LOCATION.Ed Morley
2016-08-31Fixed #20892 -- Allowed configuring memcached client using OPTIONS.Ed Morley
Previously, the MemcachedCache backend ignored `OPTIONS` and PyLibMCCache used them to set pylibmc behaviors. Both backends now pass `OPTIONS` as keyword arguments to the client constructors.
2016-08-31Removed unused variable in test_memcached_uses_highest_pickle_versionEd Morley
2016-08-29Fixed #19914 -- Fixed test failures with pylibmc.Ed Morley
2016-08-29Fixed #27132 -- Allowed testing MemcachedCache and PyLibMCCache during the ↵Ed Morley
same test run.
2016-08-29Refs #19914 -- Split the test_invalid_keys cache test into two.Ed Morley
The first half of the test fails when using pylibmc (so will need to be skipped).
2016-08-26Fixed #27124 -- Excluded cull-related cache configs from memcached tests.Ed Morley
Since the `cull` and `zero_cull` test cache configs set `MAX_ENTRIES` and `CULL_FREQUENCY` in `OPTIONS`, which are only intended for use with the locmem, filesystem, and database backends. This prevents test failures once refs #20892 is fixed.
2016-07-21Made miscellaneous code cleanupsDmitry Dygalo
2016-07-11Fixed #26792 -- Allowed None for the value of cache.get_or_set().Dmitry S..ky / skype: dvska-at-skype
2016-06-20Refs #26666 -- Added ALLOWED_HOSTS validation when running tests.Tobias McNulty
Also used ALLOWED_HOSTS to check for external hosts in assertRedirects().
2016-06-16Fixed #26747 -- Used more specific assertions in the Django test suite.Jon Dufresne
2016-06-01Fixed #26694 -- Made FileBasedCache.get() reraise non-ENOENT IOErrors.Jon Dufresne
2016-04-08Fixed E128 flake8 warnings in tests/.Tim Graham
2016-04-05Fixed #26462 -- Fixed Python 2 UnicodeEncodeError when warning about long ↵Przemysław Suliga
cache keys.
2016-04-04Fixed #26460 -- Issued a single warning for invalid cache keyPrzemysław Suliga
2016-03-08Fixed #26332 -- Fixed a race condition in BaseCache.get_or_set().Przemysław Suliga
2016-03-07Fixed #26331 -- Fixed test function names with typosGeorge Marshall
2016-01-29Refs #26022 -- Used context manager version of assertRaises in tests.Hasan
2015-12-04Fixed #25840 -- Fixed BaseCache.get_or_set() on the DummyCache backend.Emre Yilmaz
This also fixes a possible data eviction race condition between setting and getting a key. Another thread could remove the key before get_and_set() accesses it again. In this case, now the default value will be returned instead of None.
2015-11-09Fixed #6727 -- Made patch_cache_control() patch an empty Cache-Control header.Dwight Gunning