summaryrefslogtreecommitdiff
path: root/tests/regressiontests/test_client_regress
AgeCommit message (Collapse)Author
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner
2013-02-02Fixed Python 3.2 compatibility for a test.Julien Phalip
2013-02-02Fixed #17797 -- Enabled support for PATCH requests in the dummy test client. ↵Julien Phalip
Thanks to pfarmer for the suggestion and initial patch.
2012-12-08Fixed #19357 -- Allow non-ASCII chars in filesystem pathsClaude Paroz
Thanks kujiu for the report and Aymeric Augustin for the review.
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 #17899 -- Rewrote [Ee]-mail to [Ee]mailAdrien Lemaire
2012-09-18Fixed #18980 -- Fixed assertContains regression when passed an objectJeremy Dunck
2012-08-15[py3] Fixed test_client_regress testsClaude Paroz
2012-06-30Removed usage of mimetype kwarg of HttpResponseClaude Paroz
Refs #16519.
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-02Fixed override_settings usage in test_client_regressClaude Paroz
2012-05-31Cleaned up test_client_regress testsClaude Paroz
2012-05-31Moved test_client_regress tests from models.py to tests.pyClaude Paroz
2012-05-25Fixed #17371 -- Made the test client more flexibleAymeric Augustin
The OPTIONS, PUT and DELETE methods no longer apply arbitrary data encoding (in the query string or in the request body).
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-03Used catch_warnings instead of save/restore methods. Refs #17049.Claude Paroz
2012-05-03Replaced deprecated TestCase methods. Refs #17049.Claude Paroz
2012-04-30Ensured tests pass using custom PASSWORD_HASHERS.Anssi Kääriäinen
2012-04-29Fixed #18013 -- Use the new 'as' syntax for exceptions.Claude Paroz
Thanks Clueless for the initial patch. Note that unittest has been purposely left out (external package only used by Python 2.6).
2012-04-29Fixed #18023 -- Removed bundled simplejson.Aymeric Augustin
And started the deprecation path for django.utils.simplejson. Thanks Alex Ogier, Clueless, and other contributors for their work on the patch.
2012-03-31Removed deprecated tests missed in r17839.Aymeric Augustin
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17848 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-15Reverted r16386 because it replaced a brittle method with another not lessRamiro Morales
arbitrary method when the test client checks for the presence of the bundled session backends+session middleware combination. We will revisit the issue soon, probably to make these checks even less strict. Refs #7836, #16605 git-svn-id: http://code.djangoproject.com/svn/django/trunk@17739 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-17Fixed various dodgy behavioursAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17226 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-16Fixed #17323 -- Renamed HttpRequest.raw_post_data to request.body. Thanks ↵Adrian Holovaty
for the patch, dstufft git-svn-id: http://code.djangoproject.com/svn/django/trunk@17210 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-27Fixed #16040 -- Preserved scheme, host and port in the test client when ↵Aymeric Augustin
following a redirect. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17157 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-27Fixed #11555 -- Made SessionBase.session_key read-only. Cleaned up code ↵Aymeric Augustin
slightly. Refs #13478. This also removes the implicit initialization of the session key on the first access in favor of explicit initialization. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17155 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-22Fixed #15826 -- Made `assertContains` and `assertNotContains` work with ↵Julien Phalip
`SimpleTemplateResponse` by forcing it to be rendered if it hasn't been rendered yet. Thanks to bmihelac for the report, to mmcnickle for the initial patch and tests, and to Carl Meyer for the guidance. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17025 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-18Fixed #17067 -- reverted some backwards-incompatible changes from r16933 and ↵Aymeric Augustin
added tests. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17010 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-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-23Fixed #10571 -- Factored out the payload encoding code to make sure it is ↵Russell Keith-Magee
used for PUT requests. Thanks to kennu for the report, pterk for the patch, and wildfire for the review comments. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16651 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-28Fixed #15785 -- Stopped HttpRequest.read() from reading beyond the end of a ↵Jannis Leidel
wsgi.input stream and removed some redundant code in the multipartparser. Thanks, tomchristie, grahamd and isagalaev. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16479 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-12Fixed incompatibility (usage of class decorator) with Python 2.5 introduced ↵Ramiro Morales
in [16386]. Thanks ojii for the report via IRC. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16388 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-12Fixed #7836 -- Modified strategy used by the test client to check for ↵Ramiro Morales
session functionality so it is useful in environments where the DB-based session backend isn't being used. Thanks trevor for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16386 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-04-02Corrected warning filter in test_client_regressRussell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15994 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-04-02Updated to test_client_regress to use RedirectView instead of deprecated ↵Russell Keith-Magee
redirect_to. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15991 bcc190cf-cafb-0310-a4f2-bffc1f526a37
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-02-27Fixed #15368 - test failures due to regression with RequestContextLuke Plant
Thanks to cyberdelia for the reports on this. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15660 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-21Fixed #14753 -- Fixed the test client to not raise an AssertionError when ↵Ramiro Morales
request.raw_post_data is accessed from a view it has fetched with GET. Thanks zimnyx for the report and ojii for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15254 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-19Fixed a regression in the test suite from [15236].Alex Gaynor
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15244 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-17Fixed #14468 -- Extended the list of content types that the test client ↵Jannis Leidel
could guess when handling zip files. Thanks, Russ and emulbreh. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15236 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-04Removed all usages of deprecated TestCase methods (self.fail*). This ↵Alex Gaynor
removed most of the Warnings emitted (with -Wall) during the test suite. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14803 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-11Fixed #12991 -- Added unittest2 support. Thanks to PaulM for the draft ↵Russell Keith-Magee
patch, and to Luke, Karen, Justin, Alex, Łukasz Rekucki, and Chuck Harmston for their help testing and reviewing the final patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14139 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-10Fixed #12226 -- Deprecated test client Response.template attribute in favor ↵Carl Meyer
of templates attribute, which is always a list. Thanks Russell for patch review. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14106 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-21Fixed #13140 -- Ensure that request headers are preserved through redirect ↵Russell Keith-Magee
chains in the test client. Thanks to David Novakovic for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13620 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-06Fixed #11159 -- Added mimetype detection to the test client for file ↵Russell Keith-Magee
uploads. Thanks to notanumber for the report and patch, and lomin for the test case. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13517 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-06Fixed #13615 -- Clarified test assertion text to avoid confusion when ↵Russell Keith-Magee
response content isn't a web page. Thanks to DaNmarner for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13512 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-06Fixed #13092 -- Added support for the "in" operator when dealing with ↵Russell Keith-Magee
context lists. Thanks to clelland for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13510 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-03-19Fixed #13152 -- Ensure the test client saves the session before writing the ↵Russell Keith-Magee
session key to the cookie, in case the session engine changes the session key. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12806 bcc190cf-cafb-0310-a4f2-bffc1f526a37