Samuel Fekete
365a98bf66
Fix failing tests
2018-07-13 16:40:35 +01:00
Samuel Fekete
fc95e34bd4
Determine proxy based on path
2018-07-13 16:40:35 +01:00
Samuel Fekete
43f4eb8156
Fix host and port for proxy connections
2018-07-13 16:34:21 +01:00
Luiz Menezes
aff71c5107
Merge pull request #356 from kgraves/fix_before_record_response_mutates_actual_response
...
fixes before_record_response mutates response
2018-07-12 23:19:57 -03:00
Luiz Menezes
306238d561
Test aiohttp usage with query strings on the URL
2018-07-08 23:06:22 -03:00
Goran Stefkovski
0d4c9eccf5
simplified logic so that either params or url is used, if params are specified - they will overwrite any get params on the url
2018-07-08 23:03:42 -03:00
Luiz Menezes
75cb067e29
Fix content type being passed to aiohttp response stub
2018-07-07 23:56:39 -03:00
Luiz Menezes
9e8bd382d3
Fix aiohttp stub to work with aiohttp 3.3.x
2018-06-05 11:59:28 -03:00
kg
ba79174a1f
fixes before_record_response mutates response
...
When no cassette exists, it's expected that the response returned, should be
the original, unchanged response. The response recorded in the cassette should be
that which is returned by the before_record_response callback.
But on subsequent requests/responses (when a cassette exists), the responses
returned should be exactly what is in the cassette.
resolves #355
2018-05-24 01:12:13 +00:00
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