]> khamidou — GitHub mirrors - vcrpy.git/commit
Major Refactor of Stubs
authorKevin McCarthy <me@kevinmccarthy.org>
Sun, 9 Mar 2014 05:22:58 +0000 (19:22 -1000)
committerKevin McCarthy <me@kevinmccarthy.org>
Sun, 9 Mar 2014 05:22:58 +0000 (19:22 -1000)
commite84cd6f059a626d3a13a927943c48768684723b5
tree6969c3d3cec8e5a71bacb175f936fad87c0cae7c
parentc0b88c2201c110492d7adf4a35565deea6e5687e
Major Refactor of Stubs

So the stubs were getting out of hand, and while trying to add support for the
putrequest and putheader methods, I had an idea for a cleaner way to handle
the stubs using the VCRHTTPConnection more as a proxy object.  So
VCRHTTPConnection and VCRHTTPSConnection no longer inherit from HTTPConnection
and HTTPSConnection.  This allowed me to get rid of quite a bit of
copy-and-pasted stdlib code.
vcr/patch.py
vcr/request.py
vcr/stubs/__init__.py