1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-10 17:45:35 +00:00

Change default paramters to VCR from lists to tuples.

This commit is contained in:
Ivan Malison
2014-09-17 19:29:02 -07:00
parent 9a4f5f23a4
commit 8e01426056
2 changed files with 6 additions and 7 deletions

View File

@@ -78,8 +78,7 @@ class Cassette(object):
before_record=None, before_record=None,
before_record_response=None, before_record_response=None,
ignore_hosts=(), ignore_hosts=(),
ignore_localhost=() ignore_localhost=()):
):
self._path = path self._path = path
self._serializer = serializer self._serializer = serializer
self._match_on = match_on self._match_on = match_on

View File

@@ -9,19 +9,19 @@ class VCR(object):
serializer='yaml', serializer='yaml',
cassette_library_dir=None, cassette_library_dir=None,
record_mode="once", record_mode="once",
filter_headers=[], filter_headers=(),
filter_query_parameters=[], filter_query_parameters=(),
before_record=None, before_record=None,
before_record_response=None, before_record_response=None,
match_on=[ match_on=(
'method', 'method',
'scheme', 'scheme',
'host', 'host',
'port', 'port',
'path', 'path',
'query', 'query',
], ),
ignore_hosts=[], ignore_hosts=(),
ignore_localhost=False, ignore_localhost=False,
): ):
self.serializer = serializer self.serializer = serializer