summaryrefslogtreecommitdiff
path: root/tests/cache
AgeCommit message (Collapse)Author
2016-06-16[1.10.x] Fixed #26747 -- Used more specific assertions in the Django test suite.Jon Dufresne
Backport of 4f336f66523001b009ab038b10848508fd208b3b from master
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.
2014-11-03Fixed #23620 -- Used more specific assertions in the Django test suite.Berker Peksag
2014-10-22Made testing of stdout and stderr more consistent.Loic Bistuer
Refs #23663.
2014-10-20Moved a test case that caused deprecation warnings.Loic Bistuer
`cache.tests.TestEtagWithAdmin` loaded views from the `admin_views` test package. This is problematic because when the `cache` test package is run in isolation, `admin_views` isn't in INSTALLED_APPS, and therefore loading its models isn't allowed since the app loading refactor.
2014-09-29Replaced set([foo, ...]) by {foo, ...} literals. Refs PR 3282.Thomas Chaumeny
Thanks Collin Anderson for the review.
2014-09-05Revert "Fixed #23384 -- Allowed overriding part of a dictionary-type setting"Claude Paroz
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.
2014-08-30Fixed a PEP 8 error.Aymeric Augustin
2014-08-30Fixed #23384 -- Allowed overriding part of a dictionary-type settingClaude Paroz
This change is needed for upcoming changes where settings might be grouped in a parent dictionary. Thanks Tim Graham for the review.
2014-06-23Ensured cache tests do not leak temp dirsClaude Paroz
Refs #17215.
2014-06-16Fixed #22845 -- Correctly handled memcached default timeout value.Vincent-Vega
2014-05-09Used more precise assertions in cache testsClaude Paroz
2014-05-09Fixed #22606 -- Locmemcache has_key() failed for infinite cache expiryMalcolm Box
Refactored cache expiry logic for Locmemcache to make consistent across all places where accessed, and correctly handle None as expiry time.
2014-04-23Fixed #22495 -- Locmem cache.add() failed with infinite timeoutsMalcolm Box
cache.add() incorrectly succeeded when there was an existing key with an infinite (None) timeout.
2014-04-21Prevented leaking the CSRF token through caching.Aymeric Augustin
This is a security fix. Disclosure will follow shortly.
2014-04-21Appeased flake8 2.1.0.Aymeric Augustin
2014-04-06Fixed #21977 -- Deprecated SimpleTestCase.urlsAnubhav Joshi
2014-03-22Advanced deprecation warnings for 1.8.Aymeric Augustin
2014-03-22Avoided transactional DDL on castrated databases.Aymeric Augustin
Fixed a test failure that appeared after 753a22a6, although the bug existed before that commit. Refs #22308.
2014-03-21Fixed transaction handling in two management commands.Aymeric Augustin
Previously, when createcachetable and flush operated on non-default databases, they weren't atomic.
2014-03-21Removed settings.CACHE_MIDDLEWARE_ANONYMOUS_ONLY per deprecation timeline.Tim Graham
refs #15201.
2014-03-09Fixed #22237 -- Removed some warnings in the test suiteClaude Paroz
Thanks Aymeric Augustin for the report.