summaryrefslogtreecommitdiff
path: root/tests/regressiontests/views
AgeCommit message (Collapse)Author
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner
2013-02-25Fixed #19854 -- Turn Django's own Selenium tests off by default.Carl Meyer
2013-02-23Added test runner option to skip Selenium tests (#19854).Zbigniew Siciarz
2013-02-18Avoided firing the request_finished signal in tests.Aymeric Augustin
* Avoided calling BaseHttpResponse.close(). The test client take care of that since acc5396e. * Disconnected the request_finished signal when this method must be called. The test client has a similar implementation since bacb097a.
2013-02-13Fixed #18558 -- Added url property to HttpResponseRedirect*Hiroki Kiyohara
Thanks coolRR for the report.
2013-01-31Fixed #19692 -- Completed deprecation of mimetype in favor of content_type.Aymeric Augustin
Thanks Tim for the report and initial patch.
2012-12-31Fixed #19453 -- Ensured that the decorated function's arguments are ↵Julien Phalip
obfuscated in the @sensitive_variables decorator's frame, in case the variables associated with those arguments were meant to be obfuscated from the decorated function's frame. Thanks to vzima for the report.
2012-12-10Fixed #18856 -- Ensured that redirects can't be poisoned by malicious users.Florian Apolloner
2012-12-08Fixed #19357 -- Allow non-ASCII chars in filesystem pathsClaude Paroz
Thanks kujiu for the report and Aymeric Augustin for the review.
2012-11-17Fixed typo introduced in 4a5e8087ac7676ef08e76275c1f756778b39c13e.Jannis Leidel
2012-11-17Fixed #19136 -- Properly escape gettext context prefixes in the i18n ↵Jannis Leidel
JavaScript view template.
2012-10-20Used @override_settings in several tests.Aymeric Augustin
2012-10-20Fixed #7581 -- Added streaming responses.Aymeric Augustin
Thanks mrmachine and everyone else involved on this long-standing ticket.
2012-10-08[py3] Decoded the parsed source file encoding in debug viewClaude Paroz
2012-09-30Fixed #18807 -- Made 404.html and 500.html optionalClaude Paroz
Thanks Aymeric Augustin for the report and Jannis Leidel for the review.
2012-09-26Fixed #18675 -- Fixed was_modified_since with floating-point mtimeClaude Paroz
Thanks Simon Charette for the patch.
2012-09-15Modernized views.DebugViewTestsClaude Paroz
2012-08-15[py3] Fix some more encoding issues in testsClaude Paroz
2012-08-15[py3] Fixed jsi18n test.Aymeric Augustin
Also refactored said test to avoid leaking state (ie. active translation) when an error occurs.
2012-08-12[py3] Refactored __unicode__ to __str__.Aymeric Augustin
* Renamed the __unicode__ methods * Applied the python_2_unicode_compatible decorator * Removed the StrAndUnicode mix-in that is superseded by python_2_unicode_compatible * Kept the __unicode__ methods in classes that specifically test it under Python 2
2012-08-11[py3] Various minor syntax fixes in the test suiteClaude Paroz
2012-08-04Fixed #18700 -- Added URL reversal for i18n set_language view.Simon Meers
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-06-03Fixed #17138 -- Made the sensitive_variables decorator work with object methods.Julien Phalip
2012-05-25Specified when open should use binary mode.Claude Paroz
Thanks Vinaj Sajip for the help of his django3 branch.
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-05Made more extensive usage of context managers with open.Claude Paroz
2012-04-25Fixed #18033 -- Removed function-based generic views, as per official ↵Claude Paroz
deprecation timeline. Rest in peace! Thanks Anssi Kääriäinen for the review. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17937 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-04-14Converted more test assertions to assert[Not]Contains.Claude Paroz
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17910 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-04-09Fixed #17848 -- Added setting_changed signal for cases when ↵Claude Paroz
TEMPLATE_CONTEXT_PROCESSORS is overriden in tests. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17885 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-09Fixed #17358 -- Updated logging calls to use official syntax for arguments ↵Jannis Leidel
instead of string interpolation. Thanks, spulec. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17480 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-01-31Fixed #16921 -- Added assertHTMLEqual and assertHTMLNotEqual assertions, and ↵Carl Meyer
converted Django tests to use them where appropriate. Thanks Greg Müllegger. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17414 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-11Fixed #17197 -- Prevented a locale leakage from an i18n test causing ↵Julien Phalip
collateral failures in the rest of the test suite. Thanks to Florian Apolloner for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17080 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-26Fixed #17111 -- Made the `redirect_to` generic view properly handle query ↵Julien Phalip
strings with percent symbols. Thanks, Chris Adams. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17034 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-13Convert the remainder of the relative imports in the tests to be absolute ↵Alex Gaynor
imports. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16981 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-06Fixed #16705 - Made the test client adhere to the WSGI spec -- in ↵Aymeric Augustin
particular, removed the assumption that environ['QUERY_STRING'] exists. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16933 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-02Fixed #10841 -- Switched response served when DEBUG=True and ↵Ramiro Morales
request.is_ajax() returns True (indicating request has been generated by a JS library) to a plain text version for easier debugging. Contents of this response are similar to its HTML counterpart modulo frame variables values in the Python traceback section. Thanks to Riz for the report, to SmileyChris for the patch and to Julien for reviewing. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16921 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-16Fixed #16770 -- Eliminated TemplateSyntaxError wrapping of exceptions. ↵Carl Meyer
Thanks to Justin Myles-Holmes for report and draft patch. Exceptions raised in templates were previously wrapped in TemplateSyntaxError (in TEMPLATE_DEBUG mode only) in order to provide template source details on the debug 500 page. The same debug information is now provided by annotating exceptions rather than wrapping them. This makes catching exceptions raised from templates more sane, as it's consistent in or out of DEBUG, and you can catch the specific exception(s) you care about rather than having to also catch TemplateSyntaxError and unwrap it. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16833 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-11Fixed #14675 -- Completed removal of `from django.conf.urls.default import ↵Ramiro Morales
*` usage. This applies to both our own [test] code and documentation examples. Also: * Moved the functions and handlers from `django.conf.urls.defaults` up to `django.conf.urls` deprecating the former module. * Added documentation for `handler403`. * Tweaked the URLs topic document a bit. Thanks to pupeno and cdestigter for their great work contributing patches. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16818 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-12Fixed #9847 -- Added 403 response handler. Many thanks to kgrandis, ↵Jannis Leidel
adamnelson, vkryachko, fvox13 and Chris Beaven. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16606 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-07-13Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for ↵Jannis Leidel
the work on the patch and Alex for reviewing. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16539 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-22Fixed #16288 -- Enabled django.request exception logger regardless of DEBUG ↵Carl Meyer
setting. Thanks Matt Bennett for report and draft patch; Vinay Sajip and Russell Keith-Magee for review. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16444 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-14Fixed naming of test methods for the sake of consistency.Jannis Leidel
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16399 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-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-07Fixed #15980 - Unknown encoding "utf8" in ↵Luke Plant
tests/regressiontests/views/__init__.py Thanks to davidbarnett2 for the report git-svn-id: http://code.djangoproject.com/svn/django/trunk@16170 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-06Added missing future imports missed in r16167.Jannis Leidel
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16169 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-06Make use of new translation and settings context manager in the tests.Jannis Leidel
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16167 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-04-27Refs #15903 -- Added a per-TestCase urlconf to reduce coupling between test ↵Carl Meyer
apps. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16107 bcc190cf-cafb-0310-a4f2-bffc1f526a37