Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/cache
Commit message (Collapse)AuthorAgeFilesLines
* Fixed spelling of "unpicklable" in cache tests.Tim Graham2015-10-211-8/+7
|
* Fixed #25501 -- Made the file-based cache backend use ↵Andrew Artajos2015-10-201-0/+9
| | | | the highest pickling protocol.
* Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić2015-09-121-1/+2
|
* Fixed #25331 -- Removed trailing blank lines in docstrings.Maxime Lorant2015-08-311-3/+0
|
* Removed unnecessary ↵Adam Chainz2015-08-311-8/+1
| | | | | | | | | DBCacheTests.test_clear_commits_transaction test. 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.
* Refs #24652 -- Used SimpleTestCase where appropriate.Simon Charette2015-05-201-11/+12
|
* Fixed #24560 -- Added a --dry-run mode to the ↵Adam Chainz2015-04-091-0/+11
| | | | createcachetable command.
* Fixed #12982 -- Added a get_or_set() method to the ↵Berker Peksag2015-03-141-0/+22
| | | | BaseCache backend.
* Fixed #24351, #24346 -- Changed the signature of ↵Loic Bistuer2015-02-201-2/+5
| | | | | | | | | | | | | | | | allow_migrate(). 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.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-062-18/+20
|
* Fixed #24149 -- Normalized tuple settings to lists.darkryder2015-02-031-2/+2
|
* Removed django.core.cache.get_cache() per deprecation ↵Tim Graham2015-01-171-33/+3
| | | | timeline; refs #21012.
* Accounted for multiple template engines in template ↵Aymeric Augustin2015-01-121-7/+12
| | | | responses.
* Isolated some cache tests; refs #23947.Tim Graham2015-01-081-1/+4
| | | | | This reverts a change made in 40c60efecc0fc73f0b2320b44d684586b52ee799 which was incorrect and caused CacheKeyWarnings.
* Applied ignore_warnings to Django testsClaude Paroz2014-12-301-3/+6
|
* Moved context_processors from django.core to ↵Aymeric Augustin2014-12-281-1/+1
| | | | django.template.
* Fixed #23968 -- Replaced list comprehension with ↵Jon Dufresne2014-12-081-1/+1
| | | | generators and dict comprehension
* Refs #23947 -- Isolated some cache tests.Tim Graham2014-12-061-9/+12
| | | | Thanks Diego Guimarãesi and Florian Apolloner.
* Replaced router.routers usage with ↵wrwrwr2014-12-011-23/+19
| | | | override_settings(DATABASE_ROUTERS); refs #23933.
* Fixed #16358 - Made memcache backend delete old value on ↵Michael Manfre2014-11-131-0/+18
| | | | | | | | | | a failure to set. 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.
* Fixed #21281 -- Made override_settings act at class ↵Thomas Chaumeny2014-11-031-0/+5
| | | | level when used as a TestCase decorator.
* Fixed #23620 -- Used more specific assertions in the ↵Berker Peksag2014-11-031-2/+2
| | | | Django test suite.
* Made testing of stdout and stderr more consistent.Loic Bistuer2014-10-221-9/+6
| | | | Refs #23663.
* Moved a test case that caused deprecation warnings.Loic Bistuer2014-10-191-16/+0
| | | | | | | `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.
* Replaced set([foo, ...]) by {foo, ...} literals. Refs PR ↵Thomas Chaumeny2014-09-281-8/+8
| | | | | | 3282. Thanks Collin Anderson for the review.
* Revert "Fixed #23384 -- Allowed overriding part of a ↵Claude Paroz2014-09-051-5/+1
| | | | | | | | | 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.
* Fixed a PEP 8 error.Aymeric Augustin2014-08-301-1/+1
|
* Fixed #23384 -- Allowed overriding part of a ↵Claude Paroz2014-08-301-1/+5
| | | | | | | | dictionary-type setting This change is needed for upcoming changes where settings might be grouped in a parent dictionary. Thanks Tim Graham for the review.
* Ensured cache tests do not leak temp dirsClaude Paroz2014-06-231-1/+2
| | | | Refs #17215.
* Fixed #22845 -- Correctly handled memcached default ↵Vincent-Vega2014-06-161-0/+18
| | | | timeout value.
* Used more precise assertions in cache testsClaude Paroz2014-05-091-128/+128
|
* Fixed #22606 -- Locmemcache has_key() failed for ↵Malcolm Box2014-05-091-0/+2
| | | | | | | infinite cache expiry Refactored cache expiry logic for Locmemcache to make consistent across all places where accessed, and correctly handle None as expiry time.
* Fixed #22495 -- Locmem cache.add() failed with infinite ↵Malcolm Box2014-04-231-0/+3
| | | | | | | timeouts cache.add() incorrectly succeeded when there was an existing key with an infinite (None) timeout.
* Prevented leaking the CSRF token through caching.Aymeric Augustin2014-04-221-0/+27
| | | | This is a security fix. Disclosure will follow shortly.
* Appeased flake8 2.1.0.Aymeric Augustin2014-04-211-2/+2
|
* Fixed #21977 -- Deprecated SimpleTestCase.urlsAnubhav Joshi2014-04-061-1/+1
|
* Advanced deprecation warnings for 1.8.Aymeric Augustin2014-03-221-2/+2
|
* Avoided transactional DDL on castrated databases.Aymeric Augustin2014-03-221-4/+5
| | | | | | | Fixed a test failure that appeared after 753a22a6, although the bug existed before that commit. Refs #22308.
* Fixed transaction handling in two management commands.Aymeric Augustin2014-03-211-3/+5
| | | | | Previously, when createcachetable and flush operated on non-default databases, they weren't atomic.
* Removed settings.CACHE_MIDDLEWARE_ANONYMOUS_ONLY per ↵Tim Graham2014-03-211-59/+3
| | | | | | deprecation timeline. refs #15201.
* Fixed #22237 -- Removed some warnings in the test suiteClaude Paroz2014-03-091-5/+5
| | | | Thanks Aymeric Augustin for the report.
* Fixed incorrect docstring in cache tests (take two)Baptiste Mispelon2014-03-051-1/+1
| | | | | | | 3e25c8ac69ae336102d91f1d2591ab03f3a91e33 was an incomplete merge of the pull request. Thanks to @ramast for catching this.
* Fixed incorrect docstring in cache testsramast2014-03-041-1/+1
|
* Fixed #22085 -- Added a feature for setting non-expiring ↵zedr2014-03-041-2/+80
| | | | | | | | | | | keys as the default. 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).
* Fixed many typos in comments and docstrings.Rodolfo Carvalho2014-03-031-1/+1
| | | | Thanks Piotr Kasprzyk for help with the patch.
* Added tests for LocalMemCache deadlocks. refs #20613 and ↵Tim Graham2014-02-081-0/+21
| | | | | | refs #18541. Thanks Zach Smith for the patch.
* Fixed #21911 -- Made admin views redirect to login when ↵Claude Paroz2014-02-041-2/+2
| | | | | | | | | | | needed 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.
* Ensure cursors are closed when no longer needed.Michael Manfre2014-02-021-4/+3
| | | | | | 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()'.
* Fixed #20346 -- Made cache middleware vary on the full URL.ijl2013-12-281-8/+62
| | | | | | Previously, only the URL path was included in the cache key. Thanks jamey for the suggestion.
* Imported override_settings from its new location.Aymeric Augustin2013-12-231-2/+2
|