summaryrefslogtreecommitdiff
path: root/tests/test_utils.py
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* #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
* support extraction of certificate bundle from a zip archiveArthur Vigil2017-11-051-1/+29
|
* Add test case for empty `Link:` headerRemi Rampin2017-08-171-0/+4
|
* Fixes error swallowing in set_environmlcrazy2017-06-091-2/+28
|
* new requests namespaceKenneth Reitz2017-05-291-1/+1
|
* proxy bypass on Windows without DNS lookupsschlamar2017-05-041-11/+16
|
* test proxy bypass with config from registryschlamar2017-05-041-0/+48
|
* Allow use of 'no_proxy' in the proxies argumentJohn L. Villalovos2017-02-101-3/+49
| | | | | | | | | Add the ability to add 'no_proxy' and a value to the 'proxies' dictionary argument. https://github.com/kennethreitz/requests/issues/2817 Closes gh-2817
* Remove unused modulewinterJ2017-01-111-1/+1
|
* Fixed tests for python 2.x.Герасименко Евгений2016-12-291-1/+1
|
* Fixed detection of utf-32-be by BOM.Герасименко Евгений2016-12-291-0/+11
|
* updated tests with IDNA encoded and IPv6 urlsNate Prewitt2016-11-211-0/+13
|
* Merge pull request #3627 from nateprewitt/remove_update_callCory Benfield2016-10-271-1/+17
|\ | | | | remove RequestsCookieJar specific update call
| * test different CookieJar types for add_dict_to_cookiejarNate Prewitt2016-10-271-1/+17
| |
* | fix issue when the file-like object raises an IOError with tellMohamed Elawadi2016-10-181-0/+12
|/
* Merge pull request #3535 from nateprewitt/3339_avoid_getvaluesCory Benfield2016-09-141-0/+28
|\ | | | | avoid use of getvalues in super_len
| * adding tests for super_len conditional flowNate Prewitt2016-08-251-0/+28
| |
* | Fixed another scheme proxy over "all" priorityMichael Hunsinger2016-08-221-1/+1
| |
* | Fixed bug to give scheme proxy priority over "all"Michael Hunsinger2016-08-211-0/+8
|/
* Merge pull request #3429 from nateprewitt/docstring_cleanupKenneth Reitz2016-07-201-9/+8
|\ | | | | Docstring cleanup
| * making class and function docstrings consistentNate Prewitt2016-07-201-8/+6
| |
| * making module docstrings and coding comments consistentNate Prewitt2016-07-191-1/+2
| |
* | adding in pep8 fixesNate Prewitt2016-07-201-0/+1
|/
* adding in slice_length fix and test for chunk_size=None (#3370)Nate Prewitt2016-07-021-2/+8
|
* Merge pull request #3185 from brettdh/3183-support-all-proxy-env-varIan Cordasco2016-05-171-8/+19
|\ | | | | Support ALL_PROXY environment variable
| * Add 'all' proxy selection to select_proxyBrett Higgins2016-05-131-8/+19
| | | | | | | | | | | | | | It seems it's necessary both in pulling all_proxy from the environment (rebuild_proxies) and deciding which proxy to use (select_proxy). Also added new functional test.
* | Combined tests to one tests for should_bypass_proxies methodKumar Varadarajulu2016-05-161-36/+20
| |
* | Added tests for should_bypass_proxies functionKumar Varadarajulu2016-05-161-1/+37
|/
* utils: let select_proxy not raise an exception when url has no hostnameJohn R. Lenton2016-04-261-0/+1
|
* Merge remote-tracking branch 'upstream/master' into utils-unit-testsDmitry Dygalo2016-03-131-0/+14
|\ | | | | | | | | Conflicts: tests/test_utils.py
| * Switch to treat files without tell() as zero-lengthCory Benfield2016-03-071-1/+1
| |
| * Allow for exceptions from tell()Cory Benfield2016-03-071-1/+14
| |
* | Added unit tests for utils moduleDmitry Dygalo2016-02-191-10/+194
|/
* syntax changesKenneth Reitz2016-02-051-23/+12
|
* Added tests module.Dmitry Dygalo2016-02-051-0/+242
|
* remove all old testsKenneth Reitz2012-12-171-122/+0
|
* Make sure we reset environment variables.Cory Benfield2012-11-181-0/+21
| | | | | Turns out nose runs all the tests in one process, so changing the os.environ dictionary makes everything go horribly wrong.
* Respect the no_proxy environment variable.Cory Benfield2012-11-181-1/+25
| | | | This change is in response to issue #879.
* Fix the smoke test in the face of UTF-16 surrogate pairs.Martijn Pieters2012-10-261-5/+24
| | | | | | If the random data starts with a UTF-16 BOM *and* the next two bytes are for a character in the `\ud800`-`\udfff` range decoding would fail. Small chance, but still possible. Extend it to check the UTF-8 error as well. The goal is to test that the guesser was *mostly* correct, and to verify the cases where it wasn't that it was to be expected. Most of all that the function doesn't buckle under wildly unexpected data.
* Better not call it `chr`, rename to `byteschr`.Martijn Pieters2012-10-251-2/+4
|
* Redefine the `unichr` and bytes-variant of `chr` at module level.Martijn Pieters2012-10-251-2/+5
| | | | Needed to appease Travis; it's python 2.6 and 2.7 builds are weird and the `__builtins__` dict is not following CPython conventions.
* Correct a c&p mistake: set a correct docstring for the unit test class.Martijn Pieters2012-10-251-1/+1
|
* Use a JSON-specific encoding detection when no encoding has been specified.Martijn Pieters2012-10-251-0/+53
JSON *must* be encoded using UTF-8, UTF-16 or UTF-32 (see the [RFC][1]; detect the encoding based on the fact that JSON always starts with 2 ASCII characters. [1]: http://tools.ietf.org/html/rfc4627#section-3