summaryrefslogtreecommitdiff
path: root/tests/test_requests.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove Pipfile/Pipfile.lockNate Prewitt2020-11-111-3/+3
|
* Fix test_conflicting_post_params to work on pytest 5 (#5305)Miro Hrončok2020-05-081-2/+4
| | | | | | | | | The non-contextmanager form of pytest.raises was removed in pytest 5. http://doc.pytest.org/en/latest/deprecations.html#raises-warns-with-a-string-as-the-second-argument It was used here to support Python < 2.7, but that is no longer needed. https://github.com/psf/requests/pull/1503#issuecomment-22333666 Fixes https://github.com/psf/requests/issues/5304
* Merge pull request #4922 from jdufresne/orderedKenneth Reitz2019-08-201-4/+4
|\ | | | | Remove unnecessary compat shim for OrderedDict
| * Remove internal use of unnecessary compat shim for OrderedDictJon Dufresne2018-12-291-4/+4
| | | | | | | | | | | | | | | | | | The shim is the same on both Python 2 & 3. It is always collections.OrderedDict. Avoid the indirection and import from Python stdlib instead. Keep requests.compat.OrderedDict for backwards compatibility. Some packages import this.
* | Updated references to previous requests/requests GitHub pathNihaal2019-08-191-2/+2
| |
* | Normalize percent-encoded bytes before comparisonSeth M. Larson2018-12-231-1/+10
|/
* proper handling for default ports in auth strippingdefault_port_handlingNate Prewitt2018-10-281-0/+11
|
* remove final remnants from 2.6Nate Prewitt2018-10-171-5/+5
|
* Use comprehensions whenever possibleHugo Osvaldo Barrera2018-10-161-1/+1
|
* wrap url parsing exceptions from urllib3's PoolManagerNate Prewitt2018-09-301-0/+10
|
* Rework authorization stripping logic as discussedBruce Merry2018-09-141-11/+22
| | | | | The exception for http->https upgrade now requires the standard HTTP(S) ports to be used, either implicitly (no port specified) or explicitly.
* Strip Authorization header whenever root URL changesBruce Merry2018-09-141-1/+11
| | | | | | | | Previously the header was stripped only if the hostname changed, but in an https -> http redirect that can leak the credentials on the wire (#4716). Based on with RFC 7235 section 2.2, the header is now stripped if the "canonical root URL" (scheme+authority) has changed, by checking scheme, hostname and port.
* Add test for multivalued form-encoded element as a list (#4700)Antti Kaihola2018-07-201-0/+6
|
* Remove unused httpbin parametersSteven M. Vascellaro2018-07-171-5/+5
| | | | | httpbin is used to mock HTTP endpoints. In these methods, the parameter goes unused.
* Remove unused session variablesSteven M. Vascellaro2018-06-261-6/+0
| | | | Removed local session variables that go unused during testing.
* Separate collections from collections.abcRaymond Hettinger2018-06-111-1/+2
|
* Add a public method to get the cookie policyLaurent Bachelier2018-06-111-1/+1
|
* Add cookie policy related testsLaurent Bachelier2018-06-111-0/+8
|
* The library raises NoneType error when file-pointer (fp) resolves to None.Rajiv Mayani2018-05-171-0/+8
| | | | | | | | | | | | | >>> from requests import post >>> r = post("https://example.com", files={"file-name": None}) However, when a param value or json field is None they are not included in the request body. >>> from requests import get >>> r = get("https://example.com", params={"file-name": None}) >>> r.request.url This commit makes the beahviour consistent for files.
* Merge branch 'master' into masterDavid Poole2018-03-051-0/+8
|\
| * append previous url fragment on redirectNate Prewitt2018-01-211-0/+8
| |
* | add test for HTTP Digest auth algorithms SHA-256 and SHA-512David Poole2017-11-291-41/+52
|/
* Check if host is invalid for proxyNehal J Wani2017-11-151-1/+14
| | | | | | | | According to RFC3986, the authority section can be empty for a given URL, however, for a proxy URL, it shouldn't be. This patch adds a check to verify that the parsed URL will have a valid host before creating the proxy manager. Fixes #4353
* Split test in two better-defined testsAlvaro Gutierrez Perez2017-10-191-2/+10
|
* Add test for Session.get_adapter() prefix matchingAlvaro Gutierrez Perez2017-10-191-0/+18
|
* Add test for Session.get_adapter() case-insensitivityAlvaro Gutierrez Perez2017-10-191-0/+12
|
* update testsKenneth Reitz2017-09-171-3/+3
| | | | Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
* Modifying tests to include header name infomgasvoda2017-08-111-3/+6
|
* Add failing test for #4209Cory Benfield2017-07-291-1/+10
|
* Fix a typo: paramters -> parametersFelix Yan2017-06-121-1/+1
|
* Remove exec permission from files that shouldn't have itJustin Mayhew2017-06-101-1/+0
|
* Allow Requests.Response to be used as a context managerEd Morley2017-06-061-0/+6
| | | | | | | | | | | | | This saves having to wrap the call to requests with `contextlib.closing()`, allowing it to be used directly in a `with` statement, like so: ``` with requests.get('http://httpbin.org/get', stream=True) as r: # Do things with the response here. ``` Fixes #4136.
* new requests namespaceKenneth Reitz2017-05-291-2/+2
|
* fix testsKenneth Reitz2017-05-271-3/+3
|
* test entrypointsKenneth Reitz2017-05-271-0/+2
|
* remove bunk testsKenneth Reitz2017-05-261-10/+1
|
* remove test imports from packagesKenneth Reitz2017-05-261-1/+1
|
* Fix #4025Jonas Laursen2017-05-181-0/+4
|
* We no longer downcase some hosts.Cory Benfield2017-05-091-6/+6
|
* oops! import Timeout as Urllib3TimeoutAlexander 'Leo' Bergolth2017-04-031-5/+5
|
* use @pytest.mark.parametrizeAlexander 'Leo' Bergolth2017-04-031-50/+29
|
* add some tests for passing in Timeout objectsAlexander 'Leo' Bergolth2017-04-021-0/+42
|
* PR review fixes:Bastien Gérard2017-03-221-8/+8
| | | | | | - used httpbin_secure for tests - updated docstring related to `verify` param" - used TLS acronym instead of SSL
* #3926 raise IOError when providing an invalid path to a CA bundle or ↵Bastien Gérard2017-03-221-0/+16
| | | | certificate files
* Fixed some typos (#3892)Victor Pfautz2017-02-271-1/+1
| | | | * Fixed some typos
* properly handled failed seekNate Prewitt2017-02-141-1/+1
|
* * initial attempt at `get_redirect_target`jonathan vanasco2017-02-101-0/+43
| | | | * removing the `i` from the redirect detection while-loop
* fix broken testsKenneth Reitz2017-01-211-3/+3
|
* Remove unused modulewinterJ2017-01-111-2/+1
|
* Add deprecation warnings for 3.0Ian Cordasco2016-12-091-1/+2
| | | | Add extra test parameter for basic auth encoding