Luiz Menezes
26be756f47
Fix aiohttp stub to support version >= 3.1.0
2018-05-07 09:25:21 -03:00
Luiz Menezes
1562bc7659
Merge pull request #350 from lamby/895269-vcrpy-please-make-the-build-reproducible
...
Make the build reproducible
2018-05-03 12:31:29 -03:00
Chris Lamb
f317490eec
Make the build reproducible
...
Whilst working on the Reproducible Builds effort [0], we noticed
that vcrpy could not be built reproducibly.
This is due to the documentation including the absolute build path
via Python default arguments.
This was originally filed in Debian as #895269 [1].
[0] https://reproducible-builds.org/
[1] https://bugs.debian.org/895269
Signed-off-by: Chris Lamb <lamby@debian.org >
2018-05-02 10:14:43 -07:00
Allisson Azevedo
ad153bd733
Merge remote-tracking branch 'upstream/master'
2018-02-17 11:51:04 -03:00
Hugo
d0aa6bcc8d
Rewrite unnecessary list/tuple literals as set literals
2018-01-15 09:54:11 +02:00
Hugo
04fd730a08
Replace unnecessary list comprehension - 'all' can take a generator
2018-01-15 09:54:11 +02:00
Hugo
6156271c48
Automatic formatters supported in Python 2.7+
2018-01-15 09:54:11 +02:00
Hugo
42762ec806
collections.Counter is new in Python 2.7
2018-01-15 09:54:11 +02:00
Ivan Malison
c366852925
Merge pull request #324 from petr-bulusek/custom-persister
...
Fix of registering custom persister and test.
2017-10-25 02:17:08 -07:00
Allisson Azevedo
0cab15658f
Merge remote-tracking branch 'upstream/master'
2017-09-20 11:58:07 -03:00
Laurent Mazuel
262ad903cb
Don't unmock requests.packages if not necessary
2017-08-17 08:37:11 -07:00
Laurent Mazuel
ec60af0214
Fix mixup between httplib and urllib3
2017-08-17 08:37:11 -07:00
Petr Bulusek
b753a491c9
revert PR unrelated change, better comment
2017-08-09 14:44:39 +02:00
Petr Bulusek
9092b34dd1
register custom persister fix
2017-08-09 14:25:10 +02:00
Allisson Azevedo
c55d976277
Update aiohttp_stub to work with binary content
2017-06-22 15:12:58 -03:00
Kevin McCarthy
572da2084d
Fix pyflake issue
2017-05-27 15:43:24 -10:00
Kevin McCarthy
88bf8f0aac
proxy getattr to the real connection too
2017-05-27 15:40:42 -10:00
Kevin McCarthy
9b59e02374
Fix compat with requests 2.16 (unvendored urllib3)
...
The new version of requests un-vendors urllib3, with a nifty hack:
https://github.com/kennethreitz/requests/blob/master/requests/packages.py
Unfortunately messing directly with sys.modules causes some weird
behavior that I don't entirely understand. Avoiding the extra import to
requests.packages as part of VCR's initialization seems to sidestep the
issue.
Closes #311
2017-05-27 15:40:38 -10:00
Thomas Grainger
204cb8f2ac
Merge pull request #303 from graingert/support-3.6
...
support 3.6
2017-05-02 11:17:39 +01:00
Thomas Grainger
73dbc6f8cb
add missing _get_content_length static method
...
also add _is_textIO
2017-04-04 10:32:17 +01:00
Thomas Grainger
7514d94262
handle pytest-asyncio async def coroutines
2017-04-03 15:49:49 +01:00
Derek Bekoe
97473bb8d8
Correctly patch HTTPConnection.request in Python 3.6
...
Fixes https://github.com/kevin1024/vcrpy/issues/293
2017-01-23 14:54:26 -08:00
Julien Funk
9e70993d57
substiture IOError with more appropriate ValueError
2017-01-19 13:10:08 -05:00
Ivan Malison
06b00837fc
Fix patch of FliesystemPersister.load_cassette
2017-01-13 15:29:45 -08:00
Julien Funk
a033bc729c
refactored, 1 failing test
2017-01-13 16:09:42 -05:00
Julien Funk
6f8486e0a2
allow injection of persistence methods
2017-01-12 16:41:26 -05:00
MAA
365e7cb112
Removed duplicate mock triple.
2017-01-11 17:54:15 -10:00
Charly
e5d6327de9
added a fix to httplib2
2017-01-11 17:54:15 -10:00
Kevin McCarthy
9e548718e5
fix whitespace
2016-12-15 08:47:01 -10:00
Marc Nijdam
188326b10e
Fix flake errors
2016-11-07 12:03:21 -08:00
Marc Nijdam
ff90190660
Fix up to support aiohttp 1.x
2016-11-07 10:07:08 -08:00
Kevin McCarthy
2454aa2eb0
Merge pull request #278 from kevin1024/empty_response_body
...
Empty response body
2016-10-02 12:10:04 -10:00
Kevin McCarthy
df5f6089af
Merge pull request #279 from kevin1024/fix_nonetype_encode_exception
...
Fix nonetype encode exception
2016-10-02 12:09:55 -10:00
Gregory Roussac
9c275dd86a
VCR AttributeError: 'NoneType' object has no attribute 'encode'
...
Hi,
Using an old fork but may be usefull.
I think checking the string is required like on line 47.
Best regards
2016-10-02 12:07:37 -10:00
Janez Troha
31b0e825b5
Handle empty body
2016-10-02 10:24:38 -10:00
Alexander Novikov
c8db6cb731
Fix missing query string while params are passed in inside params argument
2016-10-02 10:22:29 -10:00
Patrick Uiterwijk
9c432c7e50
Move vcr.stubs.aiohttp_stub to a package
...
find_packages(exclude=) only works with packages, not modules.
So this fixes install_lib for python2 by correctly excluding that module.
Fixes : #270
Fixes : #271
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com >
2016-09-09 20:45:16 +00:00
Luiz Menezes
c65ff0e7b3
fix flake8: ignore yield from syntax errors
2016-08-11 19:48:40 -03:00
Luiz Menezes
574b22a62a
remove async/await from aiohttp_stubs to support python 3.4
2016-08-10 15:51:11 -03:00
Luiz Menezes
f71d28d10e
fix aiohttp_stubs.vcr_request error message
2016-08-04 13:39:46 -03:00
Luiz Menezes
3355bd01eb
fix aiohttp response closing
2016-08-04 13:39:09 -03:00
Luiz Menezes
17afa82bf4
remove CIMultiDictProxy from aiohttp_stubs.vcr_request
2016-08-04 13:37:55 -03:00
Luiz Menezes
f98684e8aa
add support for aiohttp
2016-08-04 00:21:49 -03:00
bogdan barna
24df79b75f
boto3 integration tests
2016-06-27 01:39:49 +02:00
David de Sousa
0800b99214
Adding support for boto3
2016-06-27 01:39:49 +02:00
Nick DiRienzo
c3298c25a3
Updated comments
2016-06-20 23:43:47 -07:00
Nick DiRienzo
2f4c803678
Added a note on the deepcopy
2016-06-20 23:36:51 -07:00
Nick DiRienzo
b5c27f99d1
Move deepcopy higher to not mutate original headers
2016-06-20 16:57:40 -07:00
Kevin McCarthy
37c8cbca91
pep8
2016-05-01 14:44:13 -10:00
Aliaksandr Buhayeu
9daf301deb
Fix for Serialization errors with JSON adapter
...
This patch aims to fix the issue#222,
where json data in request can not be serialized
because of TypeError in py3
2016-05-01 14:22:17 -10:00