1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-09 01:03:24 +00:00

Only use the relative path in HTTP requests

This causes a pretty big problem on out-of-spec HTTP servers (like
Flickr). Closes #31
This commit is contained in:
Kevin McCarthy
2013-09-17 13:18:26 -10:00
parent ce3d7270ea
commit 912452e863
4 changed files with 11 additions and 3 deletions

View File

@@ -45,3 +45,9 @@ def test_flickr_multipart_upload():
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