summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Add some tests for compat cgi_FieldStorageBert JW Regeer2016-11-171-0/+88
| | | | | This makes sure that we don't regress on our FieldStorage support across supported versions of Python
* Remove test for key in set_cookieBert JW Regeer2016-11-171-18/+0
|
* 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
|
* Location header requires a HTTP status code that supports itperf/responseBert JW Regeer2016-10-021-0/+1
|
* Add tests to verify current behaviour for charsetBert JW Regeer2016-10-021-0/+24
|
* Update tests for making location absoluteBert JW Regeer2016-10-021-14/+29
|
* Add test for resp.content_type = 'someval'Bert JW Regeer2016-09-301-0/+5
|
* Add new tests for Response.__init__Bert JW Regeer2016-09-301-0/+40
| | | | | Add tests for class defaults. There were no tests for default_content_type or default_charset
* Fix testsBert JW Regeer2016-09-301-2/+2
|
* Cleanup tests for Response.__init__Bert JW Regeer2016-09-301-16/+3
|
* Update tests for default_body_encodingfeature/default_body_encodingBert JW Regeer2016-09-301-2/+14
|
* Fix some test helpersBert JW Regeer2016-09-291-2/+10
|
* Without Content-Length, we don't read bodyBert JW Regeer2016-09-291-2/+8
| | | | | If there is no Content-Length then we don't read the body, thus the tests that used to be able to assume True are now no longer True.
* 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 an extra testBert JW Regeer2016-07-301-0/+7
|
* Merge branch 'master' into pr/117Bert JW Regeer2016-07-3021-1928/+2901
|\
| * Remove unused importBert JW Regeer2016-07-301-1/+0
| |
| * Merge branch 'master' into pr/228Bert JW Regeer2016-07-303-10/+142
| |\
| | * Add new testsBert JW Regeer2016-07-291-0/+33
| | |
| | * Fixup testsBert JW Regeer2016-07-161-2/+10
| | |
| | * On HTTP status codes without body, don't set content typeBert JW Regeer2016-07-161-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | When using Request.get_response() the response from the application may contain a status code that does not allow for an message-body to be returned, in this case adding the content type header is not valid, and potentially changes the original response. Closes #205
| | * Add space in content_typeBert JW Regeer2016-07-161-1/+1
| | |
| | * Verify that content_type doesn't modify parameters if passedBert JW Regeer2016-07-161-0/+2
| | |
| | * Flip assert aroundBert JW Regeer2016-07-161-2/+2
| | | | | | | | | | | | Makes pytest output more sane
| | * Allow charset on all content_typesBert JW Regeer2016-07-161-10/+0
| | | | | | | | | | | | | | | | | | Don't try to stop the user from shooting themselves in the foot, if the user explicitly asks for a charset, even on a content type that may not support it as a paramater who are we tell them they can't do that.
| | * response: improve charset defaultsRiley Patterson2016-07-163-5/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | * Adds Reponse.has_body.Martin Thurau2016-06-291-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | Purpose of this property is to allow users to check if the Response has a body without forcing an evaulation of the underlying app_iter. This is handy if you wan't to create a streaming response where the app_iter itself is lazy (i.e. streams data over a socket) or the app_iter can only read once.
| | * Merge branch 'master' into bugfix/exc_json_responseBert JW Regeer2016-06-0218-1950/+1907
| | |\
| | | * Add failing test for #250Bert JW Regeer2016-05-191-0/+7
| | | |
| | * | Make sure WSGIHTTPException does the right thing with accept headersBert JW Regeer2016-04-141-2/+47
| | | |
| * | | Merge branch 'master' of github.com:Pylons/webobYidong Ren2016-04-1918-1951/+1901
| |\ \ \ | | | |/ | | |/|
| | * | test_datetime_utils.py converted to assert from noseBert JW Regeer2016-04-151-45/+43
| | | |
| | * | Python 2.7 really needs the coding headerBert JW Regeer2016-04-151-0/+2
| | | |
| | * | test_exc.py converted to assert from noseBert JW Regeer2016-04-151-69/+64
| | | |
| | * | tests_headers.py converted to assert from noseBert JW Regeer2016-04-151-32/+34
| | | | | | | | | | | | | | | | Also remove unused class from test_headers.py
| | * | test_misc.py convert to assert from noseBert JW Regeer2016-04-151-37/+36
| | | |
| | * | test_descriptors.py convert to assert from nose/unittestBert JW Regeer2016-04-151-137/+144
| | | |
| | * | test_etag_nose.py convert to assert from noseBert JW Regeer2016-04-151-15/+17
| | | |
| | * | test_etag.py convert to assert from nose/unittestBert JW Regeer2016-04-151-51/+47
| | | |
| | * | test_client_functional.py convert to assert from noseBert JW Regeer2016-04-151-3/+5
| | | |
| | * | test_in_wsgiref.py convert to assert from noseBert JW Regeer2016-04-151-8/+11
| | | |
| | * | test_request.py convert to assert from nose/unittestBert JW Regeer2016-04-151-921/+886
| | | |
| | * | test_request_nose.py convert to assert from noseBert JW Regeer2016-04-151-24/+25
| | | |
| | * | test_response.py move to assert from noseBert JW Regeer2016-04-151-284/+304
| | | |
| | * | test_transcode.py move to assert from noseBert JW Regeer2016-04-151-31/+11
| | | |