1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-09 01:03:24 +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_response=None,
ignore_hosts=(),
ignore_localhost=()
):
ignore_localhost=()):
self._path = path
self._serializer = serializer
self._match_on = match_on

View File

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