summaryrefslogtreecommitdiff
path: root/tests/test_request.py
Commit message (Collapse)AuthorAgeFilesLines
* Place imports in alphabetical order.Ira Lun2017-08-291-3/+3
|
* Fix assert.Ira Lun2017-08-291-1/+1
| | | | | '' is a valid value for the Accept header, and bool(AcceptValidHeader) is True.
* Update import and isinstance test.Ira Lun2017-08-291-2/+2
|
* Add tests for request.accept.Ira Lun2017-08-291-0/+23
|
* Add request.accept_charset tests.Ira Lun2017-08-291-0/+26
|
* Add tests for request.accept_encoding.Ira Lun2017-08-291-0/+25
|
* Change test imports to module scope.Ira Lun2017-08-021-3/+5
|
* Use accept_language_property in request.Ira Lun2017-07-231-0/+25
|
* Add some IPv6 HTTP_HOST testsBert JW Regeer2017-06-301-0/+36
|
* Remove nose based test file, and move tests to requests.pyBert JW Regeer2017-05-231-0/+66
|
* Remove PY3 stuff and mark certain tests as py2onlyBert JW Regeer2017-05-221-54/+50
|
* Allow unnamed fields in form contentAnthony Sottile2017-03-021-0/+14
|
* 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
| | |