summaryrefslogtreecommitdiff
path: root/tests/test_request.py
Commit message (Collapse)AuthorAgeFilesLines
* Update test with all newly un-pct-encoded charsBert JW Regeer2016-11-161-1/+1
|
* Add test to verify paths are percent encodedBert JW Regeer2016-11-161-0/+6
|
* Fix testsBert JW Regeer2016-09-301-2/+2
|
* UnseekableInput now allows reads larger than lengthBert JW Regeer2016-09-291-1/+2
|
* Use UnseekableInput to test for no seekBert JW Regeer2016-09-291-0/+4
|
* Don't use DummyIO, use BytesIOBert JW Regeer2016-09-291-10/+14
|
* Set CONTENT_LENGTH in environ for testsBert JW Regeer2016-09-291-7/+6
| | | | Without it, there is no body and nothing is readable
* Req.body_file no longer accepts bytesBert JW Regeer2016-09-291-1/+1
| | | | | This has been deprecated since WebOb 1.2 and non-functional for a long time.
* Add new testsBert JW Regeer2016-07-291-0/+33
|
* response: improve charset defaultsRiley Patterson2016-07-161-5/+5
| | | | | | | | | | | | | | | | Refactored the logic in Response.__init__ to handle default charset more consistently. Added logic in the charset setter that ignores attempts to set it on JSON content types. Removed explicit charset specification from exceptions since this is handled correctly for the text types within Response. Fixed some affected tests, and added assertions for content types in exceptions. Addresses https://github.com/Pylons/webob/issues/237
* Python 2.7 really needs the coding headerBert JW Regeer2016-04-151-0/+2
|
* test_request.py convert to assert from nose/unittestBert JW Regeer2016-04-151-921/+886
|
* Remove tests for old deprecated featuresBert JW Regeer2016-01-281-10/+0
|
* Merge pr '183' of jonatasoliveira into bugfix/decode_consumed_streamBert JW Regeer2016-01-281-0/+16
|\
| * Using the correct body to be consumed again by decode().Jonatas Oliveira2014-12-231-0/+16
| |
* | Merge pr '#185' of ltvolks into feature/wildcardMIMEAcceptBert JW Regeer2016-01-281-1/+0
|\ \
| * | Allow wildcards to be used when comparing a MIMEAccept against an offerLucas Taylor2015-03-231-1/+0
| |/ | | | | | | | | | | - Use list comprehension instead of map for minor performance gain in ``MIMEAccept.parse`` - Fixes #155
* | Merge pull request #215Bert JW Regeer2015-09-061-0/+13
|\ \
| * | Handle PATCH missing content type in req.POST.Laurence Rowe2015-09-021-0/+13
| |/ | | | | | | Avoids `TypeError: must be str, not bytes`.
* | Add missing test for FakeCGIBody.readable()Bert JW Regeer2015-04-131-0/+5
| |
* | Update test to just check the environment variablebugfix/modify_postBert JW Regeer2015-04-121-5/+1
| | | | | | | | | | The test was flawed in that it assumed that the body_file would be replaced with FakeCGIBody.
* | Request.POST should not replace Request.body_fileBert JW Regeer2015-04-121-2/+2
| | | | | | | | | | | | | | | | FakeCGIBody mangles anything that isn't actually form-encoded, such as JSON that isn't sent with the appropriate content type. We hereby remove the usage of FakeCGIBody and instead just make the body itself seekable.
* | Add failing test for request.POST modified bodyBert JW Regeer2015-04-111-0/+15
| | | | | | | | See https://github.com/Pylons/webob/issues/149 for more details.
* | request: read body from file if the method is PATCHJulien Danjou2014-12-261-0/+17
|/ | | | | | Currently Request.from_file ignore the body of a request if the method is PATCH. This fixes that by using the dictionary we have to know if a request might have a body or not.
* Change from_string to from_bytesBert JW Regeer2014-04-161-2/+2
| | | | | This allows us to avoid a deprecationwarning being raised and makes the test compatible with version 1.3 or higher of WebOb.
* Test deprecation of functionalityBert JW Regeer2014-04-161-11/+10
|
* Add test for JSON body request with arrayjturmel2014-02-151-0/+12
| | | | | * Add a test to make sure sending a JSON body where the root element is an array works correctly
* add test for wiggy's IRC conditionChris McDonough2013-12-101-0/+12
|
* - Added a read-only ``domain`` property to ``BaseRequest``. This propertyChris McDonough2013-11-271-0/+10
| | | | | | returns the domain portion of the host value. For example, if the environment contains an ``HTTP_HOST`` value of ``foo.example.com:8000``, ``request.domain`` will return ``foo.example.com``.
* Fix test for patch requestLuke Cyca2013-08-091-7/+1
|
* Tests for PATCH requestLuke Cyca2013-08-091-0/+28
|
* Wrap 80+ column lines.Tres Seaver2013-03-291-15/+27
| | | | Leaving only those in triple-quoted strings representing protocol headers.
* Appease Py3k nanny: s/assert_/assertTrue/Tres Seaver2013-03-291-2/+2
|
* Merge branch 'master' of github.com:Batterii/webobTom Willis2013-03-181-5/+55
|\
| * Fix issue #75: depending on dict order in test_headers2Aaron DeVore2012-10-301-1/+1
| |
| * Merge https://github.com/Pylons/webobJohan Euphrosine2012-08-091-2/+6
| |\
| | * fix an environment-dependent test failure on windows (mimetypes detection ↵Sergey Schetinin2012-08-091-2/+6
| | | | | | | | | | | | using windows registry)
| * | test_request: use utf8 encoded string instead unicode in assertsJohan Euphrosine2012-08-091-1/+2
| | |
| * | test_request: use text_ for unicode strings literalJohan Euphrosine2012-08-091-2/+1
| | |
| * | fix issue #64 - test_request: add test for multipart request with non ↵Johan Euphrosine2012-08-091-0/+46
| |/ | | | | | | default charset.
| * fix issue #64 - multidict.from_fieldstorage: decode fields value using charset.Johan Euphrosine2012-08-081-1/+1
| |
| * fix tests on py3Sergey Schetinin2012-05-291-2/+2
| |
* | in the rare case when order matters for clients you need to use a MultiDict ↵Tom Willis2013-03-181-7/+20
|/ | | | | | and insert in the intended order
* unit test for proovageTom Willis2012-05-281-0/+7
|
* test another case in req.text that was uncoveredChris McDonough2012-05-081-0/+8
|
* test a case in request.text that was uncoveredChris McDonough2012-05-081-0/+8
|
* Fix test for Python 2Ian Bicking2012-04-141-1/+1
|
* Add some tests for Request.text, and .jsonIan Bicking2012-04-141-0/+31
|
* Aliased json to json_body. Make json_body a settable value. Added ↵Ian Bicking2012-04-101-7/+8
| | | | json_body to the Response object. Set content-type: application/json if you set json_body in the instantiation of Response. Use simplejson if it is available.
* get rid of test_requests package, put tests back in test_request.pyChris McDonough2012-01-281-0/+3444
|