summaryrefslogtreecommitdiff
path: root/tests/regressiontests/cache
AgeCommit message (Collapse)Author
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner
2013-02-25Fixed a caching test on Python 3.Carl Meyer
2013-02-25Fixed #18191 -- Don't consider Accept-Language redundantly in cache key.Łukasz Langa
Thanks to choongmin for the original patch.
2013-02-24Fixed #19253 -- Extracted template cache key building logicTomek Paczkowski
Introduced a public function django.core.cache.utils.make_template_fragment_key Thanks @chrismedrela for fruitful cooperation.
2013-02-24Fixed #19810 -- MemcachedCache now uses pickle.HIGHEST_PROTOCOLBas Peschier
2013-02-24Fixed #19896 -- Committed after clearing cache in the database.George Song
2012-12-29Removed legacy ways of calling cache_page.Aymeric Augustin
2012-12-24Prevented caching of streaming responses.Aymeric Augustin
The test introduced in 4b278131 accidentally passed because of a limitation of Python < 3.3. Refs #17758, #7581.
2012-11-11Merge pull request #218 from mgrouchy/ticket_18582Aymeric Augustin
Fixed #18582 -- Added a no-op close to BaseCache
2012-11-06Fixed #14315 -- Made memcached backend handle negative incr/decr valuesClaude Paroz
Thanks Michael Manfre for the report and initial patch and Tobias McNulty for the review.
2012-10-20Fixed #7581 -- Added streaming responses.Aymeric Augustin
Thanks mrmachine and everyone else involved on this long-standing ticket.
2012-09-07[py3k] Silence many warnings while running the tests.Alex Gaynor
2012-08-15[py3] Fixed more encoding issues in cache testsClaude Paroz
2012-08-15Used settings config for memcached tests.Claude Paroz
By using settings config, we take advantage of custom settings like KEY_PREFIX which allows for example to run tests in parallel.
2012-08-15Run memcache tests if any cache is configuredClaude Paroz
2012-08-15[py3] Fix some more encoding issues in testsClaude Paroz
2012-08-15[py3] Properly encode hashlib.md5 and zip.compress args in the tests.Florian Apolloner
2012-08-15Fixed usage of several deprecated aliases in unittest.Alex Gaynor
2012-08-14[py3] Compared response.content with bytes.Aymeric Augustin
2012-08-13[py3] Fixed encoding issues in cache key generationClaude Paroz
2012-08-07[py3] Ported django.utils.encoding.Aymeric Augustin
* Renamed smart_unicode to smart_text (but kept the old name under Python 2 for backwards compatibility). * Renamed smart_str to smart_bytes. * Re-introduced smart_str as an alias for smart_text under Python 3 and smart_bytes under Python 2 (which is backwards compatible). Thus smart_str always returns a str objects. * Used the new smart_str in a few places where both Python 2 and 3 want a str.
2012-07-18BaseCache now has a no-op close method as per ticket #18582Mike Grouchy
Also removed the hasattr check when firing request_finished signal for caches with a 'close' method. Should be safe to call `cache.close` everywhere now
2012-06-07Fixed #18269 -- Applied unicode_literals for Python 3 compatibility.Claude Paroz
Thanks Vinay Sajip for the support of his django3 branch and Jannis Leidel for the review.
2012-05-27Used CommandError in createcachetable command.Claude Paroz
Raising CommandError whenever a management command meets an error condition is the standard way to handle errors in commands.
2012-05-19Marked bytestrings with b prefix. Refs #18269Claude Paroz
This is a preparation for unicode literals general usage in Django (Python 3 compatibility).
2012-05-03Made warning assertions work with or without -Wall python switchClaude Paroz
2012-05-03Used catch_warnings instead of save/restore methods. Refs #17049.Claude Paroz
2012-05-03Fixed #18042 -- Advanced deprecation warnings.Aymeric Augustin
Thanks Ramiro for the patch.
2012-03-30Use the class decorator syntax available in Python >= 2.6. Refs #17965.Aymeric Augustin
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17829 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-30Removed with_statement imports, useless in Python >= 2.6. Refs #17965. ↵Claude Paroz
Thanks jonash for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17828 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-10Added missing file forgotten in r17479.Jannis Leidel
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17485 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-09Fixed #17286 -- Made sure all cache backends are set up to connect to the ↵Jannis Leidel
signal handler that closes the cache connection when the request has been processed. Thanks, gnosek. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17479 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-01-08Fixed #17300 -- Prevented createcachetable from crashing when the cache ↵Aymeric Augustin
table already exists. Thanks Claude Paroz. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17363 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-29Fixed #17476 -- Ensure timezone-dependant cache keys only use ASCII ↵Aymeric Augustin
characters, especially on Windows. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17286 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-27Fixed a CacheKeyWarning under Windows.Aymeric Augustin
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17277 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-11Fixed #15863 - SimpleCookies are not correctly serialized with the file or ↵Luke Plant
database cache backends Thanks to rakuco for the report and for the tests. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17200 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-26Fixed #17287 -- Prevented LocMemCache.incr/decr from changing key expiry ↵Carl Meyer
time. Thanks Ivan Virabyan for report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17151 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-21Fixed #17268 -- Two failures in the cache tests.Aymeric Augustin
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17131 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-20Made the database cache backend, which bypasses the ORM, compatible with ↵Aymeric Augustin
time zone support. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17119 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-19Fixed #15255 -- Ensured createcachetable honors database routers.Aymeric Augustin
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17114 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-18Added support for time zones. Thanks Luke Plant for the review. Fixed #2626.Aymeric Augustin
For more information on this project, see this thread: http://groups.google.com/group/django-developers/browse_thread/thread/cf0423bbb85b1bbf git-svn-id: http://code.djangoproject.com/svn/django/trunk@17106 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-01Made the cache locale-dependant when USE_L10N is True, even if USE_I18N is ↵Aymeric Augustin
False. Refs #5691. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17061 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-27Fixed a test isolation problem that remained after r17042.Aymeric Augustin
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17043 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-26Fixed several problems that hid one another in the cache tests and code.Aymeric Augustin
1 - Used django.test.TestCase instead of unittest.TestCase so that the override_settings decorator works. 2 - Reverted parts of r17039 that caused failures (masked until 1). 3 - Isolated tests by clearing the cache in tear down (masked until 1). Refs #11505. 4 - Fixed a bug in cache key generation (revealed by 3). 5 - Fixed a test that relied on this bug -- hardcoding the generated cache keys in tests isn't a very good idea anyway. 6 - Uniformized some parts of the cache tests. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17042 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-26Removed remains from times when tests could be run outside of runtests.py.Aymeric Augustin
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17040 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-26Improved settings manipulation in the cache tests with the suitable ↵Aymeric Augustin
decorators and context managers. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17039 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-13Convert much of the regression tests to use absolute imports. There's still ↵Alex Gaynor
work to be done though. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16976 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-20Improved test isolation of the admin tests and assigned custom admin sites toRamiro Morales
prevent test order dependant failures. This involves introducing usage of `TestCase.urls` and implementing proper admin.py modules for some of the test apps. Thanks Florian Apolloner for finding the issue and contributing the patch. Refs #15294 (it solves these problems so the fix for that ticket we are going to commit doesn't introduce obscure and hard to reproduce test failures when running the Django test suite.) git-svn-id: http://code.djangoproject.com/svn/django/trunk@16856 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-10Fixed #16162. Added timeout arg to `DummyCache.set_many`, for compatiblity ↵Alex Gaynor
with other caches. Thanks to aaugustin for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16778 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-08Fixed #16003 -- Restored compatibility of the admin when using USE_ETAGS. ↵Jannis Leidel
Thanks for the initial patch, pterk. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16729 bcc190cf-cafb-0310-a4f2-bffc1f526a37