summaryrefslogtreecommitdiff
path: root/tests/cache
AgeCommit message (Collapse)Author
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.
2014-03-05Fixed incorrect docstring in cache tests (take two)Baptiste Mispelon
3e25c8ac69ae336102d91f1d2591ab03f3a91e33 was an incomplete merge of the pull request. Thanks to @ramast for catching this.
2014-03-04Fixed incorrect docstring in cache testsramast
2014-03-04Fixed #22085 -- Added a feature for setting non-expiring keys as the default.zedr
This feature allows the default `TIMEOUT` Cache argument to be set to `None`, so that cache instances can set a non-expiring key as the default, instead of using the default value of 5 minutes. Previously, this was possible only by passing `None` as an argument to the set() method of objects of type `BaseCache` (and subtypes).
2014-03-03Fixed many typos in comments and docstrings.Rodolfo Carvalho
Thanks Piotr Kasprzyk for help with the patch.
2014-02-08Added tests for LocalMemCache deadlocks. refs #20613 and refs #18541.Tim Graham
Thanks Zach Smith for the patch.
2014-02-04Fixed #21911 -- Made admin views redirect to login when neededClaude Paroz
Historically, the Django admin used to pass through the request from an unauthorized access to the login view directly. Now we are using a proper redirection, which is also preventing inadvertantly changing data when POSTing login data to an admin view when user is already authorized. Thanks Marc Tamlyn and Tim Graham for the reviews.
2014-02-02Ensure cursors are closed when no longer needed.Michael Manfre
This commit touchs various parts of the code base and test framework. Any found usage of opening a cursor for the sake of initializing a connection has been replaced with 'ensure_connection()'.
2013-12-28Fixed #20346 -- Made cache middleware vary on the full URL.ijl
Previously, only the URL path was included in the cache key. Thanks jamey for the suggestion.
2013-12-23Imported override_settings from its new location.Aymeric Augustin
2013-11-24flake8 fixesAlex Gaynor
2013-11-24Properly closed cache connections at the end of the request.Florian Apolloner
This only affects the new cache api and not the deprecated get_cache. Refs #21012
2013-11-24Fixed flake8 error (5 space identation!!!)Alex Gaynor
2013-11-24Don't fail if there is no memcached backend active.Florian Apolloner
2013-11-24Fixed regression from ffc37e2343a93cf6d44247e20cd263b41f931716.Florian Apolloner
This (hopefully) ensures that the cache are created the same way as before the offending commit.
2013-11-24Randomized KEY_PREFIX in caches test to prevent failures during parallel ↵Florian Apolloner
testruns.
2013-11-23Don't fail if cPickle doesn't exist.Florian Apolloner
Today is not my day :(
2013-11-23Follow up to e112654fc81ddb3fbffbb8382b004d69367a85feFlorian Apolloner
Actually comitted the code now :þ
2013-11-23Fixed #21200 -- Consistantly raise errors across all cache backends.Florian Apolloner
Thanks to tchaumeny for the patch.