summaryrefslogtreecommitdiff
path: root/tests
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
* Revert "Fix for response with UTF-8 BOM #4976"Nate Prewitt2020-02-182-31/+0
| | | | | | This reverts commit 19cff44ec1b8eeec99459b504a681aa440f6344c. This reverts commit 9e27326d6843e7c26e9847776159eeb68a999675. This reverts commit f507a3ef12ce6e100f68741f68d39bcaf8a70c7a.
* Revert "#4965 fix: Accessing response.content twice removes forgets read error."Nate Prewitt2020-02-181-41/+0
| | | | | | This reverts commit bd100472443dcf4189630f6b1ed3ec0a61259dd8. This reverts commit d91fe00983f1c66b9a428fe1ad15bf6ea8238972.
* Add PyPy3 to Travis test suite (#5193)johnthagen2020-01-211-0/+1
|
* Merge branch 'master' into feature/strip-utf8-bomKenneth Reitz2019-08-203-10/+52
|\
| * 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.
| * | Merge pull request #5087 from LuckyDenis/masterKenneth Reitz2019-08-201-0/+41
| |\ \ | | | | | | | | #4965 Fix
| | * | #4965 fix: Accessing response.content twice removes forgets read error.Белавин Денис2019-05-141-0/+41
| | | |
| * | | Merge pull request #5049 from hroncok/pytest4Kenneth Reitz2019-08-201-1/+2
| |\ \ \ | | | | | | | | | | Support pytest 4
| | * | | Support pytest 4Miro Hrončok2019-05-241-1/+2
| | |/ / | | | | | | | | | | | | | | | | | | | | Fixes https://github.com/kennethreitz/requests/issues/5048 See https://docs.pytest.org/en/latest/deprecations.html#marks-in-pytest-mark-parametrize
| * | | Updated references to previous requests/requests GitHub pathNihaal2019-08-193-5/+5
| |/ /
* | | add failing tests for bomEduardo Rodrigues2019-02-092-1/+31
| | |
* | | add utf8 with bom to testEduardo Rodrigues2019-02-091-0/+1
|/ /
* | 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-174-31/+22
|
* Use comprehensions whenever possibleHugo Osvaldo Barrera2018-10-162-2/+2
|
* 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.
* Fix a typo in a test docstringAlex Chan2018-09-131-1/+1
|
* Fix assumed hostname when using a 'file' URI scheme adapterKale Franz2018-08-131-0/+1
|
* make content-type's charset information case-insensitiveLucy Linder2018-07-241-0/+4
| | | | see issue https://github.com/requests/requests/issues/4748 for more information
* 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-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
|