Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/requests
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #17133 -- Properly handled successive slashes in ↵Claude Paroz2015-10-231-0/+16
| | | | | | incoming requests Thanks gjanee@ucop.edu for the report and Tim Graham for the review.
* Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić2015-09-121-3/+18
|
* Fixed #25099 -- Fixed crash in AdminEmailHandler on ↵Vlastimil Zíma2015-09-041-0/+12
| | | | DisallowedHost.
* Fixed #25211 -- Added HttpRequest.get_port() and ↵Matt Robenolt2015-08-041-0/+32
| | | | USE_X_FORWARDED_PORT setting.
* Fixed #25099 -- Cleaned up HttpRequest representations ↵Vlastimil Zíma2015-07-141-23/+1
| | | | in error reporting.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-5/+7
|
* Fixed typos in code comments.Adam Taylor2015-01-201-1/+1
|
* Fixed #24153 -- Fixed cookie test compatibility with ↵Tim Graham2015-01-191-1/+2
| | | | Python 3.4.3+
* Fixed #23450 -- Fixed transient failure of ↵Tim Graham2014-12-301-1/+5
| | | | requests...test_far_expiration.
* Fixed #12098 -- Simplified HttpRequest.__repr__().Berker Peksag2014-11-201-5/+18
|
* Fixed #23620 -- Used more specific assertions in the ↵Berker Peksag2014-11-031-1/+1
| | | | Django test suite.
* Fixed #18456 -- Added path escaping to ↵Unai Zalakain2014-11-031-0/+13
| | | | HttpRequest.get_full_path().
* Replaced set([foo, ...]) by {foo, ...} literals. Refs PR ↵Thomas Chaumeny2014-09-281-1/+1
| | | | | | 3282. Thanks Collin Anderson for the review.
* Fixed #19802 -- Fixed HttpResponse.set_cookie() with ↵qingfeng2014-08-031-0/+8
| | | | | | unicode data on Python 2. Thanks django at patrickbregman.eu for the report.
* Updated tests per previous commit.Tim Graham2014-07-061-2/+2
|
* Fixed #22799 -- Made GET and POST on HttpRequest ↵Duncan Parkes2014-06-251-0/+7
| | | | | | | | | | | | | | | QueryDicts, and FILES a MultiValueDict. Previously, GET, POST, and FILES on an HttpRequest were created in the __init__ method as dictionaries. This was not something you would usually notice causing trouble in production as you'd only see a WSGIRequest, but in testing using the test client, calling .getlist on GET, POST, or FILES for a request with no get/post data resulted in an AttributeError. Changed GET and POST on an HttpRequest object to be mutable QueryDicts (mutable because the Django tests, and probably many third party tests, were expecting it).
* Fixed #18314 -- Corrected request.build_absolute_uri() ↵Unai Zalakain2014-06-071-1/+62
| | | | | | | | | | | handling of paths starting with // ``HttpRequest.build_absolute_uri()`` now correctly handles paths starting with ``//``. ``WSGIRequest`` now doesn't remove all the leading slashes either, because ``http://test/server`` and http://test//server`` aren't the same thing (RFC2396). Thanks to SmileyChris for the initial patch.
* Removed legacy transaction management per the ↵Aymeric Augustin2014-03-211-61/+1
| | | | deprecation timeline.
* Corrected a few missed references to old test settingsShai Berger2014-03-091-1/+1
|
* Make mysql's CursorWrapper a contextmanager.Michael Manfre2014-02-021-1/+1
|
* Ensure cursors are closed when no longer needed.Michael Manfre2014-02-021-1/+1
| | | | | | This commit touchs various parts of the code base and test framework. Any found usage of opening a cursor for the sake of initializing a connection has been replaced with 'ensure_connection()'.
* Imported override_settings from its new location.Aymeric Augustin2013-12-231-2/+2
|
* Removed superfluous models.py files.Aymeric Augustin2013-12-171-1/+0
| | | | | | | Added comments in the three empty models.py files that are still needed. Adjusted the test runner to add applications corresponding to test labels to INSTALLED_APPS even when they don't have a models module.
* Fixed #21447 -- Restored code erroneously removed in ↵Baptiste Mispelon2013-11-161-0/+16
| | | | | | | | | | | 20472aa827669d2b83b74e521504e88e18d086a1. Also added some tests for HttpRequest.__repr__. Note that the added tests don't actually catch the accidental code removal (see ticket) but they do cover a codepath that wasn't tested before. Thanks to Tom Christie for the report and the original patch.
* Fixed all E226 violationsAlex Gaynor2013-11-031-1/+1
|
* Fixed all E261 warningscoagulant2013-11-021-5/+5
|
* Fixed #21302 -- Fixed unused imports and import *.Tim Graham2013-11-021-2/+1
|
* Fixed #20338 -- Stripped ending dot during host validationClaude Paroz2013-10-241-1/+3
| | | | Thanks manfre for the report and Timo Graham for the review.
* Fixed #21298 -- Fixed E301 pep8 warningsAlasdair Nicol2013-10-231-0/+1
|
* Fixed #21288 -- Fixed E126 pep8 warningsAlasdair Nicol2013-10-211-24/+24
|
* Removed unused local variables in tests.Tim Graham2013-10-191-3/+3
|
* Fixed #21287 -- Fixed E123 pep8 warningsAlasdair Nicol2013-10-181-1/+1
|
* Fixed #21268 -- Fixed E303 pep8 warningsAlasdair Nicol2013-10-181-1/+0
|
* Fixed #16822 -- Added RawPostDataExceptionTim Graham2013-10-081-3/+4
| | | | Thanks jaylett for the patch.
* Removed unneeded imports in tests's __init__.py and ↵Florian Apolloner2013-09-091-3/+0
| | | | unified them.
* Took advantage of django.utils.six.moves.urllib.*.Aymeric Augustin2013-09-051-2/+2
|
* Fixed #19987 -- Disabled host validation when DEBUG=True.Will Hardy2013-07-311-0/+16
| | | | | | | | | | | The documentation promises that host validation is disabled when DEBUG=True, that all hostnames are accepted. Domains not compliant with RFC 1034/1035 were however being validated, this validation has now been removed when DEBUG=True. Additionally, when DEBUG=False a more detailed SuspiciousOperation exception message is provided when host validation fails because the hostname is not RFC 1034/1035 compliant.
* Isolated host validation tests in own test caseClaude Paroz2013-07-131-215/+202
|
* Fixed #20724 -- Test failure on SQLite.Aymeric Augustin2013-07-091-1/+1
| | | | | | | This test failure happened if the connection's NAME was set to a file system path, and its TEST_NAME wasn't. Thanks Claude for the report.
* Stopped using django.utils.unittest in the test suite.Aymeric Augustin2013-07-011-3/+3
| | | | Refs #20680.
* Defined available_apps in relevant tests.Aymeric Augustin2013-06-101-0/+2
| | | | Fixed #20483.
* Fixed #18481 -- Wrapped request.FILES read error in ↵Claude Paroz2013-06-011-0/+18
| | | | | | | UnreadablePostError Thanks KyleMac for the report, André Cruz for the initial patch and Hiroki Kiyohara for the tests.
* Made test introduced in 566e284c pass on Python 3.Aymeric Augustin2013-05-181-7/+7
|
* Added test for multipart, non form-data POST.Senko Rasic2013-05-181-2/+25
| | | | Closes #9054. The bug itself is no longer present.
* Fixed #20038 -- Better error message for host validation.Baptiste Mispelon2013-04-031-4/+54
|
* Fixed #20169 -- Ensured that the WSGI request's path is ↵Julien Phalip2013-04-011-0/+38
| | | | correctly based on the `SCRIPT_NAME` environment parameter or the `FORCE_SCRIPT_NAME` setting, regardless of whether or not those have a trailing slash. Thanks to bmispelon for the review.
* Made transaction.managed a no-op and deprecated it.Aymeric Augustin2013-03-111-2/+0
| | | | | | | | | | | | | | enter_transaction_management() was nearly always followed by managed(). In three places it wasn't, but they will all be refactored eventually. The "forced" keyword argument avoids introducing behavior changes until then. This is mostly backwards-compatible, except, of course, for managed itself. There's a minor difference in _enter_transaction_management: the top self.transaction_state now contains the new 'managed' state rather than the previous one. Django doesn't access self.transaction_state in _enter_transaction_management.
* Fixed tests broken in 2ee21d9.Aymeric Augustin2013-02-281-14/+29
|
* Merged regressiontests and modeltests into the test root.Florian Apolloner2013-02-263-0/+594