summaryrefslogtreecommitdiff
path: root/tests/cache
AgeCommit message (Collapse)Author
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
2015-10-21Fixed spelling of "unpicklable" in cache tests.Tim Graham
2015-10-20Fixed #25501 -- Made the file-based cache backend use the highest pickling ↵Andrew Artajos
protocol.
2015-09-12Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić
2015-08-31Fixed #25331 -- Removed trailing blank lines in docstrings.Maxime Lorant
2015-08-31Removed unnecessary DBCacheTests.test_clear_commits_transaction test.Adam Chainz
Was added in 44164c5c308da32a804dfb03ce0bffde2a6b4c56 but the transaction.commit_unless_managed() line was removed in ba5138b1c0253fcf390b7509ad7b954117b3be88; thus the test does nothing but check that clear() runs.
2015-05-20Refs #24652 -- Used SimpleTestCase where appropriate.Simon Charette
2015-04-09Fixed #24560 -- Added a --dry-run mode to the createcachetable command.Adam Chainz
2015-03-14Fixed #12982 -- Added a get_or_set() method to the BaseCache backend.Berker Peksag
2015-02-20Fixed #24351, #24346 -- Changed the signature of allow_migrate().Loic Bistuer
The new signature enables better support for routing RunPython and RunSQL operations, especially w.r.t. reusable and third-party apps. This commit also takes advantage of the deprecation cycle for the old signature to remove the backward incompatibility introduced in #22583; RunPython and RunSQL won't call allow_migrate() when when the router has the old signature. Thanks Aymeric Augustin and Tim Graham for helping shape up the patch. Refs 22583.
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-02-03Fixed #24149 -- Normalized tuple settings to lists.darkryder
2015-01-17Removed django.core.cache.get_cache() per deprecation timeline; refs #21012.Tim Graham
2015-01-12Accounted for multiple template engines in template responses.Aymeric Augustin
2015-01-08Isolated some cache tests; refs #23947.Tim Graham
This reverts a change made in 40c60efecc0fc73f0b2320b44d684586b52ee799 which was incorrect and caused CacheKeyWarnings.
2014-12-30Applied ignore_warnings to Django testsClaude Paroz
2014-12-28Moved context_processors from django.core to django.template.Aymeric Augustin
2014-12-08Fixed #23968 -- Replaced list comprehension with generators and dict ↵Jon Dufresne
comprehension
2014-12-06Refs #23947 -- Isolated some cache tests.Tim Graham
Thanks Diego Guimarãesi and Florian Apolloner.
2014-12-01Replaced router.routers usage with override_settings(DATABASE_ROUTERS); refs ↵wrwrwr
#23933.
2014-11-13Fixed #16358 - Made memcache backend delete old value on a failure to set.Michael Manfre
Default Memcached configuration allows for a maximum object of 1MB and will fail to set the key if it is too large. The key will be deleted from memcached if it fails to be set. This is needed to avoid an issue with cache_db session backend using the old value stored in memcached, instead of the newer value stored in the database.
2014-11-03Fixed #21281 -- Made override_settings act at class level when used as a ↵Thomas Chaumeny
TestCase decorator.