mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-08 16:53:23 +00:00
Record Multiple Matching Requests
This change allows us to record multiple matching requests to the same URL, and then play them back sequentially. Closes #40, #41
This commit is contained in:
@@ -40,8 +40,10 @@ def test_override_set_cassette_library_dir(tmpdir):
|
||||
def test_override_match_on(tmpdir):
|
||||
my_vcr = vcr.VCR(match_on=['method'])
|
||||
|
||||
with my_vcr.use_cassette(str(tmpdir.join('test.json'))) as cass:
|
||||
with my_vcr.use_cassette(str(tmpdir.join('test.json'))):
|
||||
urllib2.urlopen('http://httpbin.org/')
|
||||
|
||||
with my_vcr.use_cassette(str(tmpdir.join('test.json'))) as cass:
|
||||
urllib2.urlopen('http://httpbin.org/get')
|
||||
|
||||
assert len(cass) == 1
|
||||
|
||||
Reference in New Issue
Block a user