Arthur Hamon
de244a968f
add function to format the assertion message
...
This function is used to prettify the assertion message when a matcher failed and return an assertion error.
2019-06-27 22:22:10 +02:00
Arthur Hamon
728dc71a35
Merge pull request #441 from arthurHamon2/update-related-to-new-dependencies-versions
...
Update tests related to new dependencies versions
2019-06-27 22:03:30 +02:00
Arthur Hamon
bdb74b9841
change requests27 in travis-ci to requests
2019-06-27 21:33:39 +02:00
Arthur Hamon
34f0417dc9
add troubleshooting in contributing section
...
When I ran the test suite on macOSX, I had some issues regarding SSL configuration, I have documented the error I encounter and the solution to deal with it.
2019-06-27 21:33:39 +02:00
Arthur Hamon
7724b364aa
urllib3 has a new default behavior with PoolManager object creation
...
By default, from version urllib3=>1.25, urllib3 requires and validates certificates by default when using HTTPS (https://github.com/urllib3/urllib3/blob/master/CHANGES.rst#125-2019-04-22 ).
Set explicitly that we deactivate certificates validation with cert_reqs=`CERT_NONE`.
2019-06-13 16:04:26 +02:00
Arthur Hamon
c4803dbc4d
httplib2 has issues validating certificate with python 2.7, disabling it
2019-06-13 16:04:26 +02:00
Arthur Hamon
a53121b645
do not create tox environment with python2 and aiohttp
...
aiohttp dependency only works with python 3.5+
2019-06-13 16:04:26 +02:00
Arthur Hamon
78a0a52bd9
fix issue with tests using localhost
...
The error we have : SSLError: hostname '127.0.0.1' doesn't match either of 'localhost', '127.0.0.1'
This is fixed by adding the `ipaddress` dependency in the tox ini.
2019-06-13 16:04:26 +02:00
Ivan Malison
18977a85d1
Merge pull request #413 from khamidou/add_rewind_method
...
Add a `rewind` method to reset a cassette.
2019-06-10 17:53:37 -07:00
Luiz Menezes
fb84928ef6
Fix build problems on requests tests due to SSL certificate problems
2019-06-10 16:57:24 -03:00
Luiz Menezes
0b4d92c277
Merge pull request #435 from hugovk/rm-3.4
...
Drop support for EOL Python 3.4
2019-06-10 15:38:36 -03:00
Hugo
8f4e089200
Upgrade Python syntax with pyupgrade
2019-05-22 17:44:36 +03:00
Hugo
7670e10bc2
Fix Flake8: E117 over-indented
2019-05-22 17:35:15 +03:00
Hugo
dc174c3250
Drop support for EOL Python 3.4
2019-05-22 17:30:45 +03:00
Luiz Menezes
114fcd29b4
Merge pull request #416 from davidwilemski/util-warnings
...
Fix collections.abc DeprecationWarning
2019-04-06 00:17:32 -03:00
David Wilemski
4e990db32e
Fix collections.abc DeprecationWarning
...
In versions of Python from 3.8 and forward, importing Mapping and
MutableMapping from the collections module will no longer work. This
change will try to import from the collections.abc module, which was
added in Python 3.3, and fall back to the collections module on older
versions of Python.
2019-01-01 15:23:51 -08:00
Karim Hamidou
472bc3aea1
Add a rewind method to reset a cassette.
2018-12-20 12:44:07 +01:00
Luiz Menezes
c74a857aa4
Merge pull request #409 from jxltom/pin-requires-version-for-python34
...
Pin yarl and multidict version for python34
2018-11-14 09:59:39 -03:00
jxltom
c3705dae9f
Fix flake8 in python3
2018-11-14 10:27:38 +08:00
jxltom
6c166482d9
Pin yarl and multidict version for python34
2018-11-14 09:48:49 +08:00
Thomas Grainger
cc9fabf2d9
Merge pull request #379 from adamchainz/patch-1
...
Update docs on before_record_* callbacks
2018-10-15 04:05:16 +01:00
Thomas Grainger
f77442d87b
Merge pull request #400 from felixonmars/patch-1
...
Fix a typo in vcr/request.py
2018-10-15 04:04:32 +01:00
Thomas Grainger
602112cd87
Merge pull request #404 from kevin1024/text-encoding-errors-kwarg
...
support ClientResponse.text(errors=) kwarg
2018-10-15 04:04:15 +01:00
Thomas Grainger
4ef5205094
support ClientResponse.text(errors=) kwarg
2018-10-15 03:00:19 +01:00
Felix Yan
0d2f49fe8a
Fix a typo in vcr/request.py
2018-10-06 17:21:42 +08:00
Luiz Menezes
8fdc6dbb68
Merge pull request #397 from stj/master
...
ClientResponse.release isn't a coroutine
2018-10-04 12:04:05 -03:00
Stefan Tjarks
ffc4dca502
ClientResponse.release isn't a coroutine
...
Therefore it should not be one in the MockClientResponse class.
d0af887e31/aiohttp/client_reqrep.py (L832)
2018-09-26 00:30:11 -07:00
Luiz Menezes
e42746fa88
Bump version to 2.0.1
v2.0.1
2018-09-23 15:25:04 -03:00
Luiz Menezes
03b1dd9faa
Merge pull request #395 from kevin1024/fix-py34
...
Fix py34
2018-09-22 23:16:14 -03:00
Luiz Menezes
f2a79d3fcc
Add py34 to CI builds
2018-09-22 17:30:21 -03:00
Luiz Menezes
287ea4b06e
Fix cassette module to work with py34
2018-09-22 17:29:08 -03:00
Luiz Menezes
0cf11d4525
Bump version to 2.0.0
v2.0.0
2018-09-19 11:46:08 -03:00
Luiz Menezes
75a334686f
Merge pull request #391 from kevin1024/py37
...
Add support to py37
2018-09-18 19:40:45 -03:00
Luiz Menezes
9a9cdb3a95
add py37 on CI build
2018-09-18 19:04:30 -03:00
Luiz Menezes
b38915a89a
Fix httplib2 compatibility with py37
2018-09-18 18:42:22 -03:00
Felix Yan
e93060c81b
Fix compatibility with Python 3.7
2018-09-18 16:41:42 -03:00
Luiz Menezes
10736db427
Merge pull request #374 from adamchainz/readme_supported
...
Update docs' lists of supported HTTP clients
2018-09-18 14:45:11 -03:00
Luiz Menezes
cb4228cf90
Merge pull request #390 from kevin1024/fix-aiohttp-client
...
Fix vcr to support aiohttp client requests
2018-09-18 14:42:59 -03:00
Luiz Menezes
f7c051cde6
Drop support to asyncio.coroutine (py34 async/await syntax)
2018-09-18 14:14:25 -03:00
Luiz Menezes
075dde6707
Merge pull request #384 from valgur/patch-1
...
Fix PyPI badge URLs in README.rst
2018-09-18 12:55:32 -03:00
Luiz Menezes
af2742b6b9
Merge pull request #389 from lamenezes/fix-proxy
...
Fix proxy
2018-09-18 11:32:53 -03:00
Luiz Menezes
e9d00a5e2a
Fix test_use_proxy cassette response type
2018-09-18 11:13:39 -03:00
Danilo Shiga
957db22d5c
Improve test_use_proxy with cassette headers and play_count assertion
2018-09-18 11:06:15 -03:00
Martin Valgur
5ddcaa4870
Replace PNG badges with SVG ones
2018-09-05 20:26:01 +03:00
Martin Valgur
76076e5ccb
Fix PyPI badge URLs in README.rst
...
`vcrpy-unittest` -> `vcrpy` in PyPI URLs.
2018-09-05 20:05:27 +03:00
Adam Johnson
7417978e36
tornado.httpclient
2018-07-31 10:38:21 +01:00
Adam Johnson
a9e75a545e
Update docs on before_record_* callbacks
...
Make them a bit more consistent and obvious that returning `None` ignores the request/response.
2018-07-31 09:54:29 +01:00
Stefan Tjarks
e559be758a
Fix aiohttp patch to work with aiohttp >= 3.3
...
Aiohttp expects an awaitable instance to be returned from
`ClientSession._request` though `asyncio.coroutine` decorated function
do not implement `__await__`. By changing the syntax and dropping Python
3.4 support we fix this issue.
2018-07-25 13:24:29 -03:00
Adam Johnson
bb8d39dd20
Update docs' lists of supported HTTP clients
...
I noticed these were out of sync, especially weirdly one mentioning boto and the other mentioning boto3. I figure the list in the README is redundant when the Installation docs section lists the supported libraries, so I've removed it. I also:
* alphabetically sorted the list
* Highlighted the library names as code
* Added both `boto` and `boto3` to the list since there is support for both
* Removed the comment about Tornado's AsyncHTTPClient since that's an implementation detail plus the patch happens on a couple different classes
* Removed the note about `http.client` being part of Python 3, because everyone is Python 3 these days anyway :)
2018-07-18 22:51:58 +01:00
Samuel Fekete
ff7dd06f47
fix proxy for Python 2
2018-07-13 16:44:19 +01:00