summaryrefslogtreecommitdiff
path: root/tests/regressiontests/middleware_exceptions
AgeCommit message (Collapse)Author
2011-03-03Updated test assertions that have been deprecated by the move to unittest2. ↵Russell Keith-Magee
In summary, this means: assert_ -> assertTrue assertEquals -> assertEqual failUnless -> assertTrue For full details, see http://www.voidspace.org.uk/python/articles/unittest2.shtml#deprecations git-svn-id: http://code.djangoproject.com/svn/django/trunk@15728 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-16Fixed #15083 -- Corrected the order of TemplateResponse middleware handling, ↵Russell Keith-Magee
ensuring that custom URLConfs are valid, and that ResponseMiddleware is invoked if the TemplateResponseMiddleware causes errors. Thanks to Sayane for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15226 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-07Fixed #12815 -- Added TemplateResponse, a lazy-evaluated Response class. ↵Russell Keith-Magee
Thanks to Simon Willison for the original idea, and to Mikhail Korobov and Ivan Sagalaev for their assistance, including the draft patch from Mikhail. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14850 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-07Fixed #13684 -- if settings.ROOT_URLCONF isn't defined don't blow up with an ↵Alex Gaynor
UnboundLocalError. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14488 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-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-03-12Fixed #13090 -- Corrected handling of errors in middleware when DEBUG=False. ↵Russell Keith-Magee
Thanks to EroSennin for the report, and Ivan Sagalaev for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12773 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-10Fixed #6094 again -- fixed broken unit tests. Thanks, isagalaevAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12186 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-10Added some missing __init__.py files to two testsAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12170 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-10Fixed #6094 -- Middleware exceptions are now caught by the core handler. ↵Adrian Holovaty
Thanks, isagalaev git-svn-id: http://code.djangoproject.com/svn/django/trunk@12165 bcc190cf-cafb-0310-a4f2-bffc1f526a37