summaryrefslogtreecommitdiff
path: root/tests/regressiontests
AgeCommit message (Collapse)Author
2010-11-07Make the requests test use unittest2, rather than the system unittest.Alex Gaynor
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14487 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-04Fixed #13935, added support for using QuerySet.dates across related fields. ↵Alex Gaynor
Thanks to valyagolev for his work on the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14461 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-04Fixed #11966 -- Made it possible to use a percent sign in a translation ↵Jannis Leidel
message id. Thanks for the patch, Claude Paroz. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14459 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-04Fixed #6476 -- Added option to makemessages management command to disable ↵Jannis Leidel
wrapping of long lines. Thanks to pytechd for the initial patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14454 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-04Fixed #9988 -- Added support for translation contexts. Thanks, Claude Paroz.Jannis Leidel
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14450 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-04Converted templates doctests into unittests. We have always been at war ↵Alex Gaynor
with doctests. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14448 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-02Fixed #13567 -- Added a 'silent' argument to the cycle tag, so that you can ↵Russell Keith-Magee
declare a cycle without producing a value in the template. Thanks to anentropic for the suggestion and initial patch, and Łukasz Rekucki for the final patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14439 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-02Fixed #14596 -- Light refactoring of the cache backends.Russell Keith-Magee
* Removes some code duplication, * Provides a convenient base class for db-like cache backends * Adds tests for an edge case of culling, * Marks the memcached tests as "skipped", rather than omitting them. Thanks to Jonas H for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14434 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-02Fixed a few more cases of the tests not properly restoring sys.path (follow ↵Alex Gaynor
up on [14429]). git-svn-id: http://code.djangoproject.com/svn/django/trunk@14431 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-02Properly handle the fact that lists are mutable when trying to maintain ↵Alex Gaynor
state in a test. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14429 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-02Migrated app_loading doctests.Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14427 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-02Fixed #14470 -- Migrated modeladmin doctests. Thanks to Preston Timmons for ↵Russell Keith-Magee
the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14425 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-01Added a filter to silence the RuntimeWarning in the Indonesian localflavor ↵Russell Keith-Magee
tests. Thanks to Alex for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14418 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-31Ensure that assertNumQueries doesn't swallow exceptions inside the function.Alex Gaynor
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14405 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-30Ensure that the staticfiles tests use the MEDIA_ROOT they intended, also use ↵Alex Gaynor
a more approrpiate datastructure in collectstatic. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14401 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-30Rewrote a test assertion so that it doesn't fail under Python 2.7. Thanks to ↵Russell Keith-Magee
Florian Apolloner for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14400 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-30Fixed #14588 -- Corrected r14393 to ensure that response middlewares are are ↵Russell Keith-Magee
always applied. Includes a battery of tests to validate the expected behavior of the middleware cycle. Thanks to Petr Marhoun for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14398 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-30Sped up the staticfiles_tests by allowing them to only search a few relevant ↵Alex Gaynor
directories, rather than every single test application. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14396 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-29Fixed #14181 -- Added a template tag and filters to allow localization to be ↵Russell Keith-Magee
disabled in a template. Thanks to Benjamin Wohlwend for the work on the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14395 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-29Fixed #9886 -- Added a file-like interface to HttpRequest. Thanks to Ivan ↵Russell Keith-Magee
Sagalaev for the suggestion and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14394 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-29Fixed #14523 -- Modified response handling so that exceptions raised by ↵Russell Keith-Magee
process_response() in a middleware are caught and handled like any other exception. Thanks to Ivan Sagalaev for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14393 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-29Fixed #14560 -- Enable HEAD requests to be cached properly. Thanks, codemonkey!Honza Král
Introducing ability to cache HEAD requests and GET requests separately by adding the method to the cache key while preserving the functionality that HEAD requests can use cached reponses generated by a GET request. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14391 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-28Fixed #14471 -- Corrected a regression in the use of methods on custom ↵Russell Keith-Magee
managers on related querysets. Thanks to Lucky for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14389 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-28Fixed #14565 - No csrf_token on 404 page.Luke Plant
This solution doesn't have the negative side-effects of [14356]. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14377 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-28Fixed #14504 -- Corrected the way object_list is used in ListView to avoid ↵Russell Keith-Magee
overwriting context. Includes improved usage of unittest2 assertions. Thanks to Łukasz Rekucki for the final patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14372 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-27Fixed MultiValueDict's copy implementation to be consistant with all other ↵Alex Gaynor
copies. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14366 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-23Fixed #14544 -- Squashed bug in the findstatic command when used with the ↵Jannis Leidel
--first option. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14324 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-23Fixed #14223 -- Extended unification of exception raised in presence of ↵Ramiro Morales
integrity constraint violations. The unification had been introduced in r12352 and native backend exceptions still slipped through in cases that end in connection.commit() call. Thanks Alex, Jacob and Carl for reviewing. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14320 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-21Ensure the mutliple_database tests leave the settings in the same state they ↵Alex Gaynor
found them. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14313 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-21Fixed a bug with method_decorator not preserving the attributes of the ↵Luke Plant
wrapped method, which is important for decorators like csrf_exempt git-svn-id: http://code.djangoproject.com/svn/django/trunk@14311 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-21Removed old code with Python 2.3 compatibilityLuke Plant
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14310 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-21Fixed test failure when using Python 2.7Luke Plant
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14309 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-21Fixed #14507 -- Corrected the logic of the URL helpers and view of ↵Jannis Leidel
staticfiles to actual work like documented (only when settings.DEBUG is True). Thanks for the report and initial patch, mbi. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14306 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-20Fixed #12323 and #11582 -- Extended the ability to handle static files. ↵Jannis Leidel
Thanks to all for helping with the original app, the patch, documentation and general support. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14293 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-19Fixed errors introduced in r14279 when running Django tests under Python < 2.6.Ramiro Morales
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14287 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-19Converted queries tests from doctests to unittests.Ramiro Morales
Thanks Russell and Alex for reviews and suggestions. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14279 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-19Fixed a small typo introduced in r14139.Ramiro Morales
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14272 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-18Fixed #13842 -- Added tests to verify that XViewMiddleware works with ↵Russell Keith-Magee
class-based views. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14269 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-18Corrected some Postgres test failures introduced by r14254.Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14256 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-18Fixed #6735 -- Added class-based views.Russell Keith-Magee
This patch is the result of the work of many people, over many years. To try and thank individuals would inevitably lead to many people being left out or forgotten -- so rather than try to give a list that will inevitably be incomplete, I'd like to thank *everybody* who contributed in any way, big or small, with coding, testing, feedback and/or documentation over the multi-year process of getting this into trunk. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14254 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-18Fixed #13790 -- auto detection of m2m fields to Site. Thanks, gabrielhurley!Honza Král
Tests are placed in the test suite and not the contrib app since they require models to work git-svn-id: http://code.djangoproject.com/svn/django/trunk@14251 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-18Fixed #12074 -- Adding .as_p and as_ul methods to FormSet. Thanks ↵Honza Král
arthurdebert and dpn for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14250 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-18Fixed Indonesion localflavor tests, broken in r14195Honza Král
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14249 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-17Fixed #13963 -- Use the correct verbose name of a reverse relation field in ↵Jannis Leidel
the admin. Thanks, sfllaw and d0ugal. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14244 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-17Corrected the skipIfDBFeature and skipUnlessDBFeature decorators to actually ↵Russell Keith-Magee
*run* the tests they decorate. Thanks to Alex for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14243 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-17Corrected a suite of test failures when running under postgres.Alex Gaynor
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14241 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-16Fixed #14126 -- Fixed an issue with changes to the blocktrans tag introduced ↵Jannis Leidel
in r13967 related to multiple plural forms. Thanks, mark0978, svetlyak40wt and Ramiro. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14239 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-15Fixed #11350 -- added an Israeli localflavor. Thanks to Yuval and Idan ↵Alex Gaynor
Gazit for their work on the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14223 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-15Fixed #14454 -- converted admin_widgets tests from doctests to unittests. ↵Alex Gaynor
We have always been at war with doctests. Thanks to prestontimmons for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14221 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-14Fixed #14445 - Use HMAC and constant-time comparison functions where needed.Luke Plant
All adhoc MAC applications have been updated to use HMAC, using SHA1 to generate unique keys for each application based on the SECRET_KEY, which is common practice for this situation. In all cases, backwards compatibility with existing hashes has been maintained, aiming to phase this out as per the normal deprecation process. In this way, under most normal circumstances the old hashes will have expired (e.g. by session expiration etc.) before they become invalid. In the case of the messages framework and the cookie backend, which was already using HMAC, there is the possibility of a backwards incompatibility if the SECRET_KEY is shorter than the default 50 bytes, but the low likelihood and low impact meant compatibility code was not worth it. All known instances where tokens/hashes were compared using simple string equality, which could potentially open timing based attacks, have also been fixed using a constant-time comparison function. There are no known practical attacks against the existing implementations, so these security improvements will not be backported. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14218 bcc190cf-cafb-0310-a4f2-bffc1f526a37