There are probably some [bugs](https://github.com/kevin1024/vcrpy/issues?labels=bug&page=1&state=open) floating around too.
##Changelog
+* 0.3.1: Fix issue causing full paths to be sent on the HTTP request
+ line.
* 0.3.0: *Backwards incompatible release* - Added support for record
modes, and changed the default recording behavior to the "once" record
mode. Please see the documentation on record modes for more. Added
sys.exit(errno)
setup(name='vcrpy',
- version='0.3.0',
+ version='0.3.1',
description="A Python port of Ruby's VCR to make mocking HTTP easier",
author='Kevin McCarthy',
author_email='me@kevinmccarthy.org',
assert len(cass) == 1
_pretend_to_be_flickr_library()
assert cass.play_count == 1
+
+def test_flickr_should_respond_with_200(tmpdir):
+ testfile = str(tmpdir.join('flickr.yml'))
+ with vcr.use_cassette(testfile):
+ r = requests.post("http://api.flickr.com/services/upload")
+ assert r.status_code == 200
def _send_request(self, method, url, body, headers):
"""
- Coppy+pasted from python stdlib 2.6 source because it
+ Copy+pasted from python stdlib 2.6 source because it
has a call to self.send() which I have overridden
#stdlibproblems #fml
"""
self._baseclass.request(
self,
method=self._vcr_request.method,
- url=self._vcr_request.url,
+ url=self._vcr_request.path,
body=self._vcr_request.body,
headers=dict(self._vcr_request.headers or {})
)