summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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-053-3/+143
|\
| * append previous url fragment on redirectNate Prewitt2018-01-212-0/+80
| |
| * Fix DNS resolution by using hostname instead of netloc and strip username ↵Darren Dormer2018-01-161-2/+23
| | | | | | | | and password when comparing against proxy bypass items.
| * added more to test scenariosdbairaktaris12018-01-041-1/+9
| |
| * Continue to refactor, remove list comprehension, add double quotes test case.dbairaktaris12018-01-041-4/+8
| |
| * implement changes after code reviewdbairaktaris12018-01-031-8/+0
| |
| * Move nested function up to module level and rename. Add more tests for ↵dbairaktaris12018-01-011-1/+36
| | | | | | | | function.
* | Merge branch 'master' into masterDavid Poole2017-11-291-1/+6
|\ \ | |/
| * #4373, fix possible winreg value type difference (#4377)Mingyuan Xia2017-11-201-1/+6
| | | | | | | | | | | | | | | | | | | | * #4373, fix possible winreg value type difference * add a test for ProxyOverride and ProxyEnable on win32 * add tests for winreg key ProxyEnable with two possible types * fixing AppVeyor failures
* | 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
* support extraction of certificate bundle from a zip archiveArthur Vigil2017-11-051-1/+29
|
* 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>
* Add test case for empty `Link:` headerRemi Rampin2017-08-171-0/+4
|
* Modifying tests to include header name infomgasvoda2017-08-111-3/+6
|
* Add failing test for #4209Cory Benfield2017-07-291-1/+10
|
* Add idna version info to requests.helpAlex Chan2017-07-271-0/+19
|
* test ssl version check functions as expected in python 2.6Nate Prewitt2017-07-041-0/+21
|
* Fix a typo: paramters -> parametersFelix Yan2017-06-121-1/+1
|
* Remove exec permission from files that shouldn't have itJustin Mayhew2017-06-102-1/+0
|
* Merge remote-tracking branch 'upstream/master'mlcrazy2017-06-091-0/+6
|\
| * 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.
* | Fixes error swallowing in set_environmlcrazy2017-06-091-2/+28
|/
* Fix requests.packages not having package attributesRyan Pineo2017-05-291-0/+13
| | | | Fixes #4104
* new requests namespaceKenneth Reitz2017-05-293-5/+5
|
* skip for nowtravis2Kenneth Reitz2017-05-281-0/+1
|
* todoKenneth Reitz2017-05-281-0/+1
|
* fix testsKenneth Reitz2017-05-271-3/+3
|
* test entrypointsKenneth Reitz2017-05-271-0/+2
|
* remove bunk testsKenneth Reitz2017-05-261-10/+1
|
* fix __init__.pyKenneth Reitz2017-05-261-1/+1
|
* more test removal of old importsKenneth Reitz2017-05-261-11/+2
|
* 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
|
* proxy bypass on Windows without DNS lookupsschlamar2017-05-041-11/+16
|
* test proxy bypass with config from registryschlamar2017-05-041-0/+48
|
* revert 8e6e47af and c121b98cschlamar2017-05-041-73/+1
|
* fix handle of non-ascii location on redirectsshmuelamar2017-04-181-9/+3
|
* fix unicode decode error on py2 when handling redirect without schemeshmuelamar2017-04-141-1/+38
|
* 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