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

allow match_on to be passed as an argument VCR

This commit is contained in:
Hector Dearman
2013-09-21 21:47:27 +01:00
committed by Kevin McCarthy
parent 912452e863
commit c03459e582
2 changed files with 15 additions and 2 deletions

View File

@@ -8,9 +8,11 @@ class VCR(object):
def __init__(self,
serializer='yaml',
cassette_library_dir=None,
record_mode="once"):
record_mode="once",
match_on=['url','method'],
):
self.serializer = serializer
self.match_on = ['url', 'method']
self.match_on = match_on
self.cassette_library_dir = cassette_library_dir
self.serializers = {
'yaml': yamlserializer,