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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user