summaryrefslogtreecommitdiff
path: root/tests/regressiontests
AgeCommit message (Collapse)Author
2011-06-10Fixed #16196 - Redundant or incorrect code in testsLuke Plant
Thanks to intelliyole and melinath for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16354 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-10Fixed #16201 -- Ensure that requests with Content-Length=0 don't break the ↵Russell Keith-Magee
multipart parser. Thanks to albsen for the report and patch git-svn-id: http://code.djangoproject.com/svn/django/trunk@16353 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-10Fixed #16185, #15675 -- Added the ability for test runners to define custom ↵Russell Keith-Magee
options, and to specify a custom test runner at the command line. Thanks to Dmitry Jemerov and Mikołaj Siedlarek for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16352 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-09Fixed #16178 - Cleanup request classes' `__repr__()`Luke Plant
Thanks to julien for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16350 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-09Fixed #16155 -- Removed Python 2.4 compatibility constructs from code and ↵Ramiro Morales
mentions from docs. Thanks Aymeric Augustin for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16349 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-09Fixed #9459: forms.HiddenInput and DateTime field loses microseconds. Thanks ↵Andrew Godwin
to mt. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16347 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-09Stopped staticfiles from modifying INSTALLED_APPS during test runtime.Jannis Leidel
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16344 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-08Fixed an unnecessary use of TransactionTestCaseLuke Plant
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16341 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-08Fixed #14206 - dynamic list_display support in adminLuke Plant
Thanks to gabejackson for the suggestion, and to cyrus for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16340 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-08Fixed #14614 - filtering of sensitive information in 500 error reports.Luke Plant
This adds a flexible mechanism for filtering what request/traceback information is shown in 500 error emails and logs. It also applies screening to some views known to be sensitive e.g. views that handle passwords. Thanks to oaylanc for the report and many thanks to Julien Phalip for the patch and the rest of the work on this. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16339 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-08Deprecated legacy ways of calling cache_pageLuke Plant
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16338 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-07Fixed #14082 -- Use metaclass of provided ModelForm subclass in ↵Carl Meyer
modelform_factory. Thanks jspiros and Stephen Burrows for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16334 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-07Fixed #7704, #14045 and #15495 -- Introduce a lexer for Javascript to fix ↵Jannis Leidel
multiple problems of the translation of Javascript files with xgettext. Many thanks to Ned Batchelder for his contribution of the JsLex library. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16333 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-05Enhanced a bit the documentation and docstring for the url template tag. ↵Ramiro Morales
Also, added a test for it. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16331 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-04Fixed import error that was causing EggLoader tests not to be runLuke Plant
Also improved ImportError handling that was causing this fact to be missed. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16323 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-03Fixed various bugs related to having multiple columns in admin list_display ↵Luke Plant
with the same sort field Thanks to julien for the report Refs #11868 git-svn-id: http://code.djangoproject.com/svn/django/trunk@16319 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-02Fixed #11868 - Multiple sort in admin changelist.Luke Plant
Many thanks to bendavis78 for the initial patch, and for input from others. Also fixed #7309. If people were relying on the undocumented default ordering applied by the admin before, they will need to add 'ordering = ["-pk"]' to their ModelAdmin. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16316 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-02Removed a broken test added in [16312]Luke Plant
This test caused a test failure (in subclass CustomModelAdminTest), and the test also proved to be extremely brittle when trying to implement #11868, and basically unfixable with current infrastructure. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16313 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-01Fixed bug with `__str__` headers in admin changelist have a non-functioning ↵Luke Plant
sort URL git-svn-id: http://code.djangoproject.com/svn/django/trunk@16312 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-01Tweaked test added in [16308] so it doesn't fail.Ramiro Morales
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16311 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-01Fix the staticfiles_tests and django.conf to not think that None meant a ↵Alex Gaynor
lazy object hadn't been evaluated. Thanks to Jannis for informing me that I broke the test suite (if you were harmed by this I'll buy you a cookie). Sorry. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16310 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-01Allow SimpleLazyObjects to return None without constantly being reevaluated, ↵Alex Gaynor
also proxy ``__nonzero__``, and do some codecleanup as well. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16308 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-01Fixed #9200 -- Added new form wizard to formtools based on class based ↵Jannis Leidel
views. Many thanks to Stephan Jäkel, ddurham and ElliottM for their work. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16307 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-31Fixed auth context processor tests, which were not running at all previously.Luke Plant
It seems they were accidentally disabled following being moved from regressiontests in [15990] git-svn-id: http://code.djangoproject.com/svn/django/trunk@16304 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-31Fixed #15805 - assertFieldOutput should not use assertRaisesRegexpLuke Plant
Thanks to julien for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16303 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-30Fixed #14261 - Added clickjacking protection (X-Frame-Options header)Luke Plant
Many thanks to rniemeyer for the patch! git-svn-id: http://code.djangoproject.com/svn/django/trunk@16298 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-30Fixed #15929 - test.client.RequestFactory keeps state/AuthMiddleware does ↵Luke Plant
monkey patching Thanks to m.vantellingen for the report and tests, and to aaugustin for work on the tests. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16297 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-30Fixed #15776 - delete regression in Django 1.3 involving nullable foreign keysLuke Plant
Many thanks to aaron.l.madison for the detailed report and to emulbreh for the fix. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16295 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-28Fixed #16108 -- Fixed another race condition in the FileSystemStorage ↵Jannis Leidel
backend with regard to deleting a file. Refs #16082, too. Thanks, Aymeric Augustin. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16287 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-27Changed a bit the strategy used to test staticfiles finders so they can cope ↵Ramiro Morales
with even more differences in case of paths under Windows. Refs #14961 git-svn-id: http://code.djangoproject.com/svn/django/trunk@16285 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-26Modified a couple of i18n regression tests to make them run under Windows.Ramiro Morales
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16281 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-26Fixed #16082 -- Fixed race condition in the FileSystemStorage backend with ↵Jannis Leidel
regard to creating directories. Thanks, pjdelport. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16280 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-24Made expected output platform-independent in a test for the template ↵Ramiro Morales
postmortem debug 500 view so it doesn't fail under Windows. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16277 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-24Fixed #16004 - csrf_protect does not send cookie if view returns ↵Luke Plant
TemplateResponse The root bug was in decorator_from_middleware, and the fix also corrects bugs with gzip_page and other decorators. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16276 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-24Fixed #16080 -- Handle admin list filter items with two characters better. ↵Jannis Leidel
Thanks, Ales Zoulek and Julien Phalip. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16274 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-23Workaround particularities of Python under Windows that interfere with ↵Ramiro Morales
expected outputs in `admin_scripts` regression tests. Thye were causing most of them to fail in such platform. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16273 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-23Changed utils/decorators.py tests to use RequestFactoryLuke Plant
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16272 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-23Refactoring of 'fully_decorated' for clarity and removal of duplication.Luke Plant
Also allows re-use of 'full_decorator' if we need it. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16271 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-22Fixes #8593 -- better handling of safe_join case sensitivity on windows. ↵Chris Beaven
Thanks for the initial patch, ramiro. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16267 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-22Fix UnboundLocalError than could occur during ModelAdmin validation.Karen Tracey
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16262 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-22Fixed #6580 -- Added `default` parameter to `MultiValueDict.getlist` method ↵Jannis Leidel
(the base class for `QueryDict`). Many thanks to mk and andrewebdev. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16260 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-21Fixed #11789 -- Fixed aggregates so it interacts with QuerySet none() in a ↵Ramiro Morales
way consistent with other empty query sets. Thanks alexr for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16254 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-21Fixed #12417 -- Added signing functionality, including signing cookies. Many ↵Jannis Leidel
thanks to Simon, Stephan, Paul and everyone else involved. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16253 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-21Fixed #14476 -- Fixed resolution of automatically generated annotation names ↵Ramiro Morales
so e.g. filtering based on them works. Thanks dirleyls for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16252 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-18Removed a settings test introduced in r16237 that didn't run on Python < 2.6 ↵Jannis Leidel
due to a SyntaxError raise regarding the class decorators. Thanks for the hint, Julien. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16238 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-18Fixed #15561 -- Extended test setting override code added in r16165 with a ↵Jannis Leidel
decorator and a signal for setting changes. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16237 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-17Fixed #15921 -- Refined naturaltime filter added in r16071 to use timesince ↵Jannis Leidel
and timeuntil filters as fallbacks instead of date filter. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16233 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-17Updated humanize tests to use the FixedOffset timezone from the utils and ↵Jannis Leidel
removed a bit code smell while I'm here. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16232 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-15Fixed #15790 -- Fixed QuerySet only() and defer() methods behavior with ↵Ramiro Morales
proxy models. Thanks Michal Modzelewzki for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16228 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-14Added ability to describe grouping of form fields in the same row to the ↵Ramiro Morales
`fields` ModelAdmin attribute. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16225 bcc190cf-cafb-0310-a4f2-bffc1f526a37