summaryrefslogtreecommitdiff
path: root/tests/test_request.py
Commit message (Collapse)AuthorAgeFilesLines
* Run pyupgrade --py37-plus across codebaseBert JW Regeer2022-05-241-1/+1
|
* Format using isort/black to satisfy linterBert JW Regeer2020-11-281-19/+18
|
* set() -> {}Bert JW Regeer2020-11-281-1/+1
|
* Remove unnecesary encode to latin-1Bert JW Regeer2020-11-281-1/+1
|
* Catch/raise OSError instead of IOErrorBert JW Regeer2020-11-281-1/+1
|
* Drop object from class definitionBert JW Regeer2020-11-281-14/+14
|
* Add test for _encode_multipart which is not public APIBert JW Regeer2020-11-281-0/+26
|
* Import from collections.abc directlyBert JW Regeer2020-11-281-3/+1
|
* Remove native_ and move bytes_, text_ to webob.utilBert JW Regeer2020-11-281-11/+7
| | | | | | | | This removes any calls to `native_`, most of which should have been calls to `text_` in the first place. Also moves `bytes_` and `text_` to `webob.util` where they are more at home as we continue to remove items from `webob.compat`
* Goodbye to compat.{string_types,integer_types,class_types,text_type,long}Bert JW Regeer2020-11-281-5/+5
|
* Remove old kwargs from BaseRequestBert JW Regeer2020-11-281-26/+0
|
* cgi.FieldStorage.__repr__ patch moves to compatBert JW Regeer2020-11-281-2/+2
|
* Goodbye FakeCGIBodyBert JW Regeer2020-11-281-106/+0
|
* Remove LegacyRequestBert JW Regeer2020-11-281-665/+0
|
* Rewind body_file_raw after parsing in POSTPeter Lazorchak2020-06-021-0/+15
|
* Fix escaping in bytesBert JW Regeer2018-10-181-1/+1
|
* Fix many flake8 warnings/errorsBert JW Regeer2018-10-151-31/+70
|
* WebOb is now formatted by ambv/blackBert JW Regeer2018-10-141-1793/+1837
| | | | | | | All future commits will be required to format their code using Python black. This also hooks up linting and all that fun stuff to enforce it.
* fix test suite warningsMichael Merickel2018-10-061-12/+26
|
* use collections.abc for abc types if availableMichael Merickel2018-10-061-2/+2
| | | | | collections.MutableMapping and other abc types were deprecated in 3.3 and will be removed in 3.8
* Add Request.remote_host propertyNir Soffer2018-07-131-0/+11
| | | | This property expose the REMOTE_HOST environment variable.
* request.POST now supports any requests with the appropriate Content-Type (#351).Kirill Kuzminykh2018-03-091-2/+2
|
* ``request.POST`` now supports DELETE requests with the appropriate ↵Kirill Kuzminykh2018-03-081-53/+65
| | | | Content-Type (#351).
* 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
| |