]> khamidou — GitHub mirrors - vcrpy.git/log
vcrpy.git
8 years agofixes before_record_response mutates response
kg [Wed, 9 May 2018 20:44:28 +0000 (20:44 +0000)]
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

8 years agoMerge pull request #346 from carsonyl/patch-1
Luiz Menezes [Sun, 6 May 2018 22:06:06 +0000 (19:06 -0300)]
Merge pull request #346 from carsonyl/patch-1

Convert extras_require conditional deps to PEP 508 form.

8 years agoMerge branch 'master' of github.com:kevin1024/vcrpy into patch-1
Carson Lam [Sun, 6 May 2018 02:53:42 +0000 (19:53 -0700)]
Merge branch 'master' of github.com:kevin1024/vcrpy into patch-1

8 years agoMerge pull request #350 from lamby/895269-vcrpy-please-make-the-build-reproducible
Luiz Menezes [Thu, 3 May 2018 15:31:29 +0000 (12:31 -0300)]
Merge pull request #350 from lamby/895269-vcrpy-please-make-the-build-reproducible

Make the build reproducible

8 years agoMerge pull request #320 from allisson/master
Luiz Menezes [Thu, 3 May 2018 15:30:41 +0000 (12:30 -0300)]
Merge pull request #320 from allisson/master

Update aiohttp_stub to work with binary content

8 years agoMerge remote-tracking branch 'upstream/master'
Allisson Azevedo [Wed, 2 May 2018 18:03:01 +0000 (15:03 -0300)]
Merge remote-tracking branch 'upstream/master'

8 years agoMake the build reproducible
Chris Lamb [Mon, 9 Apr 2018 09:01:20 +0000 (10:01 +0100)]
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>
8 years agoMerge pull request #354 from kevin1024/build-quicker
Luiz Menezes [Wed, 2 May 2018 16:31:36 +0000 (13:31 -0300)]
Merge pull request #354 from kevin1024/build-quicker

Fix broken tests + build quicker

8 years agoTemporarily pins aiohttp to version <3
Luiz Menezes [Wed, 2 May 2018 15:19:55 +0000 (12:19 -0300)]
Temporarily pins aiohttp to version <3

8 years agoPin flask version (as latests 1.0 breaks retrocompatibility)
Luiz Menezes [Wed, 2 May 2018 14:59:01 +0000 (11:59 -0300)]
Pin flask version (as latests 1.0 breaks retrocompatibility)

8 years agoPass flake8.
Carson Lam [Thu, 22 Feb 2018 07:16:29 +0000 (23:16 -0800)]
Pass flake8.

8 years agoConvert extras_require conditional deps to PEP 508 form.
Carson Lam [Thu, 22 Feb 2018 05:40:02 +0000 (21:40 -0800)]
Convert extras_require conditional deps to PEP 508 form.

8 years agoMerge remote-tracking branch 'upstream/master'
Allisson Azevedo [Sat, 17 Feb 2018 14:51:04 +0000 (11:51 -0300)]
Merge remote-tracking branch 'upstream/master'

8 years agoRemove boto
Hugo [Fri, 19 Jan 2018 21:56:06 +0000 (23:56 +0200)]
Remove boto

8 years agoOnly test on single recent version of dependencies
Hugo [Wed, 17 Jan 2018 08:28:36 +0000 (10:28 +0200)]
Only test on single recent version of dependencies

8 years agoMerge pull request #340 from hugovk/rm-2.6
Thomas Grainger [Tue, 16 Jan 2018 17:23:12 +0000 (17:23 +0000)]
Merge pull request #340 from hugovk/rm-2.6

Drop support for EOL Python 2.6 and 3.3

8 years agoRequests 1.x only supports Python <= 3.3
Hugo [Mon, 15 Jan 2018 20:37:27 +0000 (22:37 +0200)]
Requests 1.x only supports Python <= 3.3

8 years agoTest flakes on Python 2.7 (and 3.6) not pypy3.5
Hugo [Mon, 15 Jan 2018 20:36:19 +0000 (22:36 +0200)]
Test flakes on Python 2.7 (and 3.6) not pypy3.5

8 years agoxfail for test_post_chunked_binary_secure on CPython 3.5
Hugo [Mon, 15 Jan 2018 13:05:53 +0000 (15:05 +0200)]
xfail for test_post_chunked_binary_secure on CPython 3.5

8 years agoAdd pypy3.5-5.9.0
Hugo [Mon, 15 Jan 2018 08:04:25 +0000 (10:04 +0200)]
Add pypy3.5-5.9.0

8 years agoDrop pypy3
Hugo [Fri, 8 Dec 2017 09:45:44 +0000 (11:45 +0200)]
Drop pypy3

8 years agoRemove dependency on bugs.python.org/xmlrpc: 301 Moved Permanently
Hugo [Thu, 7 Dec 2017 14:18:09 +0000 (16:18 +0200)]
Remove dependency on bugs.python.org/xmlrpc: 301 Moved Permanently

8 years agoRemove dependency on old Flask
Hugo [Thu, 7 Dec 2017 13:53:38 +0000 (15:53 +0200)]
Remove dependency on old Flask

8 years agoDrop support for EOL Python 3.3
Hugo [Thu, 7 Dec 2017 12:51:10 +0000 (14:51 +0200)]
Drop support for EOL Python 3.3

8 years agoRewrite unnecessary list/tuple literals as set literals
Hugo [Thu, 7 Dec 2017 11:48:04 +0000 (13:48 +0200)]
Rewrite unnecessary list/tuple literals as set literals

8 years agoReplace unnecessary list comprehension - 'all' can take a generator
Hugo [Thu, 7 Dec 2017 11:37:33 +0000 (13:37 +0200)]
Replace unnecessary list comprehension - 'all' can take a generator

8 years agoAutomatic formatters supported in Python 2.7+
Hugo [Thu, 7 Dec 2017 11:32:08 +0000 (13:32 +0200)]
Automatic formatters supported in Python 2.7+

8 years agoMultiple context managers supported in 2.7+
Hugo [Thu, 7 Dec 2017 11:26:27 +0000 (13:26 +0200)]
Multiple context managers supported in 2.7+

8 years agoUpdate classifiers
Hugo [Thu, 7 Dec 2017 11:23:05 +0000 (13:23 +0200)]
Update classifiers

8 years agoAdd python_requires to help pip install correct version
Hugo [Thu, 7 Dec 2017 11:22:42 +0000 (13:22 +0200)]
Add python_requires to help pip install correct version

8 years agocollections.Counter is new in Python 2.7
Hugo [Thu, 7 Dec 2017 11:20:20 +0000 (13:20 +0200)]
collections.Counter is new in Python 2.7

8 years agoDrop support for EOL Python 2.6
Hugo [Thu, 7 Dec 2017 11:17:54 +0000 (13:17 +0200)]
Drop support for EOL Python 2.6

8 years agoStop testing on EOL Python 2.6
Hugo [Thu, 7 Dec 2017 10:51:00 +0000 (12:51 +0200)]
Stop testing on EOL Python 2.6

9 years agoCorrect libyaml-devel package name in EL/Fedora
Andrew Kofink [Mon, 30 Oct 2017 19:08:01 +0000 (15:08 -0400)]
Correct libyaml-devel package name in EL/Fedora

9 years agoMerge pull request #324 from petr-bulusek/custom-persister
Ivan Malison [Wed, 25 Oct 2017 09:17:08 +0000 (02:17 -0700)]
Merge pull request #324 from petr-bulusek/custom-persister

Fix of registering custom persister and test.

9 years agoMerge remote-tracking branch 'upstream/master'
Allisson Azevedo [Wed, 20 Sep 2017 14:58:07 +0000 (11:58 -0300)]
Merge remote-tracking branch 'upstream/master'

9 years agoMerge pull request #326 from lmazuel/master
Ivan Malison [Thu, 17 Aug 2017 17:08:38 +0000 (10:08 -0700)]
Merge pull request #326 from lmazuel/master

Fix mixup between httplib and urllib3

9 years agoAdd requests 2.18.4 to build
Laurent Mazuel [Wed, 16 Aug 2017 21:45:32 +0000 (14:45 -0700)]
Add requests 2.18.4 to build

9 years agoDon't unmock requests.packages if not necessary
Laurent Mazuel [Wed, 16 Aug 2017 21:43:27 +0000 (14:43 -0700)]
Don't unmock requests.packages if not necessary

9 years agoFix mixup between httplib and urllib3
Laurent Mazuel [Tue, 15 Aug 2017 23:39:33 +0000 (16:39 -0700)]
Fix mixup between httplib and urllib3

9 years agodelete ipdb.set_trace
Petr Bulusek [Sat, 12 Aug 2017 15:58:52 +0000 (17:58 +0200)]
delete ipdb.set_trace

9 years agotypo
Petr Bulusek [Fri, 11 Aug 2017 12:41:11 +0000 (14:41 +0200)]
typo

9 years agoInstantiating class not necessary.
Petr Bulusek [Wed, 9 Aug 2017 13:18:00 +0000 (15:18 +0200)]
Instantiating class not necessary.

9 years agorevert PR unrelated change, better comment
Petr Bulusek [Wed, 9 Aug 2017 12:44:39 +0000 (14:44 +0200)]
revert PR unrelated change, better comment

9 years agoregister custom persister fix
Petr Bulusek [Wed, 9 Aug 2017 12:25:10 +0000 (14:25 +0200)]
register custom persister fix

9 years agoUpdate usage.rst
Mikaeil Orfanian [Sat, 1 Jul 2017 10:52:28 +0000 (12:52 +0200)]
Update usage.rst

"i.e." is misleading because it means "in other words". In the context of this paragraph, "i.e." implies that "unexpected requests" are those that have a different URI.
I think a URI change is just one example of what could constitute an "unexpected" request. vcr does request matching based on method, port, body, etc.
So, I think "e.g." which means "for example" is the right phrase in this context.

9 years agoUpdate aiohttp_stub to work with binary content
Allisson Azevedo [Thu, 22 Jun 2017 18:12:58 +0000 (15:12 -0300)]
Update aiohttp_stub to work with binary content

9 years agoMerge pull request #314 from kevin1024/support-requests211
Ivan Malison [Wed, 7 Jun 2017 18:27:26 +0000 (11:27 -0700)]
Merge pull request #314 from kevin1024/support-requests211

support requests 2.11 Fixes #313

9 years agosupport requests 2.11 Fixes #313 support-requests211
Thomas Grainger [Wed, 7 Jun 2017 13:10:00 +0000 (14:10 +0100)]
support requests 2.11 Fixes #313

9 years agobump version v1.11.1
Kevin McCarthy [Sun, 28 May 2017 02:47:11 +0000 (16:47 -1000)]
bump version

9 years agoonly need to run flakes on one version of python
Kevin McCarthy [Sun, 28 May 2017 01:57:23 +0000 (15:57 -1000)]
only need to run flakes on one version of python

9 years agoDrop a couple old versions of python
Kevin McCarthy [Sun, 28 May 2017 01:52:33 +0000 (15:52 -1000)]
Drop a couple old versions of python

According to the devguide: https://docs.python.org/devguide/

Python 3.3 is officially supported until 2017-09-29 and 3.4 until
2019-03-16

But I'm tired of waiting for my tests to run on Travis :-P

9 years agoFix pyflake issue
Kevin McCarthy [Sun, 28 May 2017 01:43:00 +0000 (15:43 -1000)]
Fix pyflake issue

9 years agoproxy getattr to the real connection too
Kevin McCarthy [Sun, 28 May 2017 01:30:09 +0000 (15:30 -1000)]
proxy getattr to the real connection too

9 years agoFix compat with requests 2.16 (unvendored urllib3)
Kevin McCarthy [Sun, 28 May 2017 01:11:06 +0000 (15:11 -1000)]
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

9 years agoAdd new version of urllib3 to tox
Kevin McCarthy [Sun, 28 May 2017 01:00:47 +0000 (15:00 -1000)]
Add new version of urllib3 to tox

Also remove ancient version in the interest of test speed

9 years agoadd new requests version
Kevin McCarthy [Sat, 27 May 2017 20:57:31 +0000 (10:57 -1000)]
add new requests version

9 years agopass all args to runtests
Kevin McCarthy [Sat, 27 May 2017 20:57:25 +0000 (10:57 -1000)]
pass all args to runtests

9 years agoversion bump 1.11.0 v1.11.0
Thomas Grainger [Tue, 2 May 2017 10:36:12 +0000 (11:36 +0100)]
version bump 1.11.0

9 years agoMerge pull request #303 from graingert/support-3.6
Thomas Grainger [Tue, 2 May 2017 10:17:39 +0000 (11:17 +0100)]
Merge pull request #303 from graingert/support-3.6

support 3.6

9 years agoMerge pull request #301 from graingert/handle-pytest-asyncio-coroutines
Thomas Grainger [Tue, 2 May 2017 10:17:06 +0000 (11:17 +0100)]
Merge pull request #301 from graingert/handle-pytest-asyncio-coroutines

handle pytest-asyncio async def coroutines

9 years agopytest-httpbin doesn't support chunked requests on Python 3.6
Thomas Grainger [Tue, 4 Apr 2017 09:31:44 +0000 (10:31 +0100)]
pytest-httpbin doesn't support chunked requests on Python 3.6

9 years agoadd requests 2.13
Thomas Grainger [Tue, 4 Apr 2017 09:25:43 +0000 (10:25 +0100)]
add requests 2.13

9 years agoadd missing _get_content_length static method
Thomas Grainger [Mon, 3 Apr 2017 14:43:20 +0000 (15:43 +0100)]
add missing _get_content_length static method

also add _is_textIO

9 years agoMerge remote-tracking branch 'derekbekoe/fix-vcrconnection-3.6' into support-3.6
Thomas Grainger [Mon, 3 Apr 2017 14:33:41 +0000 (15:33 +0100)]
Merge remote-tracking branch 'derekbekoe/fix-vcrconnection-3.6' into support-3.6

9 years agosupport 3.6
Thomas Grainger [Wed, 22 Mar 2017 17:05:34 +0000 (17:05 +0000)]
support 3.6

9 years agoMerge pull request #305 from graingert/add-cache-to-gitignore
Kevin McCarthy [Mon, 3 Apr 2017 16:40:21 +0000 (06:40 -1000)]
Merge pull request #305 from graingert/add-cache-to-gitignore

add .cache to gitignore

9 years agohandle pytest-asyncio async def coroutines
Thomas Grainger [Tue, 14 Mar 2017 13:56:17 +0000 (13:56 +0000)]
handle pytest-asyncio async def coroutines

9 years agoadd .cache to gitignore
Thomas Grainger [Mon, 3 Apr 2017 14:45:21 +0000 (15:45 +0100)]
add .cache to gitignore

9 years agoMerge pull request #302 from AartGoossens/feature/before_record_docs_fix
Kevin McCarthy [Thu, 16 Mar 2017 18:55:34 +0000 (08:55 -1000)]
Merge pull request #302 from AartGoossens/feature/before_record_docs_fix

Improves docs for before_record_request

9 years agoImproves docs for before_record_request
Aart Goossens [Thu, 16 Mar 2017 18:25:16 +0000 (19:25 +0100)]
Improves docs for before_record_request

9 years agoRevert "Add Python 3.6 to CI"
Derek Bekoe [Wed, 25 Jan 2017 00:26:02 +0000 (16:26 -0800)]
Revert "Add Python 3.6 to CI"

This reverts commit 24b617a427e174aedb0acca6690bb163f51baf2c.

9 years agoAdd Python 3.6 to CI
Derek Bekoe [Tue, 24 Jan 2017 21:57:37 +0000 (13:57 -0800)]
Add Python 3.6 to CI

9 years agoCorrectly patch HTTPConnection.request in Python 3.6
Derek Bekoe [Mon, 23 Jan 2017 22:54:26 +0000 (14:54 -0800)]
Correctly patch HTTPConnection.request in Python 3.6

Fixes https://github.com/kevin1024/vcrpy/issues/293

9 years agoMerge pull request #292 from j-funk/master
Kevin McCarthy [Sun, 22 Jan 2017 14:29:52 +0000 (08:29 -0600)]
Merge pull request #292 from j-funk/master

Allow injection of persistence methods

9 years agoadd custom persister docs
Julien Funk [Thu, 19 Jan 2017 18:10:27 +0000 (13:10 -0500)]
add custom persister docs

9 years agosubstiture IOError with more appropriate ValueError
Julien Funk [Thu, 19 Jan 2017 18:10:08 +0000 (13:10 -0500)]
substiture IOError with more appropriate ValueError

9 years agoremove unused imports
Julien Funk [Sun, 15 Jan 2017 23:04:20 +0000 (15:04 -0800)]
remove unused imports

9 years agoMerge pull request #1 from IvanMalison/persistence_methods
Julien Funk [Sat, 14 Jan 2017 20:59:13 +0000 (15:59 -0500)]
Merge pull request #1 from IvanMalison/persistence_methods

Fix patch of FliesystemPersister.load_cassette

9 years agoFix patch of FliesystemPersister.load_cassette
Ivan Malison [Fri, 13 Jan 2017 23:29:45 +0000 (15:29 -0800)]
Fix patch of FliesystemPersister.load_cassette

9 years agorefactored, 1 failing test
Julien Funk [Fri, 13 Jan 2017 21:09:42 +0000 (16:09 -0500)]
refactored, 1 failing test

9 years agoallow injection of persistence methods
Julien Funk [Thu, 12 Jan 2017 21:41:26 +0000 (16:41 -0500)]
allow injection of persistence methods

9 years agoversion bump v1.10.5
Kevin McCarthy [Thu, 12 Jan 2017 03:51:23 +0000 (17:51 -1000)]
version bump

9 years agoRemoved duplicate mock triple.
MAA [Sun, 18 Dec 2016 07:16:17 +0000 (10:16 +0300)]
Removed duplicate mock triple.

9 years agoadded a fix to httplib2
Charly [Wed, 4 Jan 2017 22:55:11 +0000 (17:55 -0500)]
added a fix to httplib2

9 years agoAdd missing requirement yarl for python >= 3.4
Luiz Menezes [Mon, 26 Dec 2016 11:03:46 +0000 (09:03 -0200)]
Add missing requirement yarl for python >= 3.4

9 years agobump version
Kevin McCarthy [Thu, 15 Dec 2016 18:41:34 +0000 (08:41 -1000)]
bump version

9 years agofix whitespace
Kevin McCarthy [Thu, 15 Dec 2016 18:46:44 +0000 (08:46 -1000)]
fix whitespace

10 years agoMerge pull request #280 from madninja/fix_aiohttp
Kevin McCarthy [Tue, 8 Nov 2016 20:15:07 +0000 (10:15 -1000)]
Merge pull request #280 from madninja/fix_aiohttp

Fix up to support aiohttp 1.x

10 years agoFix flake errors
Marc Nijdam [Mon, 7 Nov 2016 20:03:21 +0000 (12:03 -0800)]
Fix flake errors

10 years agoFix up to support aiohttp 1.x
Marc Nijdam [Mon, 7 Nov 2016 18:07:08 +0000 (10:07 -0800)]
Fix up to support aiohttp 1.x

10 years agobump version to 1.10.3 v1.10.3
Kevin McCarthy [Sun, 2 Oct 2016 22:14:27 +0000 (12:14 -1000)]
bump version to 1.10.3

10 years agoMerge pull request #278 from kevin1024/empty_response_body
Kevin McCarthy [Sun, 2 Oct 2016 22:10:04 +0000 (12:10 -1000)]
Merge pull request #278 from kevin1024/empty_response_body

Empty response body

10 years agoMerge pull request #279 from kevin1024/fix_nonetype_encode_exception
Kevin McCarthy [Sun, 2 Oct 2016 22:09:55 +0000 (12:09 -1000)]
Merge pull request #279 from kevin1024/fix_nonetype_encode_exception

Fix nonetype encode exception

10 years agoMerge pull request #277 from kevin1024/fix_asyncio
Kevin McCarthy [Sun, 2 Oct 2016 22:09:48 +0000 (12:09 -1000)]
Merge pull request #277 from kevin1024/fix_asyncio

Fix asyncio

10 years agofix flake8 failure fix_nonetype_encode_exception
Kevin McCarthy [Sun, 2 Oct 2016 22:08:02 +0000 (12:08 -1000)]
fix flake8 failure

10 years agotest serializers.compat.convert_to_bytes()
Gregory Roussac [Tue, 30 Aug 2016 13:06:03 +0000 (15:06 +0200)]
test serializers.compat.convert_to_bytes()

10 years agoVCR AttributeError: 'NoneType' object has no attribute 'encode'
Gregory Roussac [Thu, 25 Aug 2016 15:23:12 +0000 (17:23 +0200)]
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

10 years agoadd test from @mbachry empty_response_body
Kevin McCarthy [Sun, 2 Oct 2016 20:24:19 +0000 (10:24 -1000)]
add test from @mbachry

10 years agoHandle empty body
Janez Troha [Wed, 2 Dec 2015 11:22:57 +0000 (12:22 +0100)]
Handle empty body