From 8e0142605610d07d9273497fd07cadbb1c99f63f Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Wed, 17 Sep 2014 19:29:02 -0700 Subject: [PATCH] Change default paramters to VCR from lists to tuples. --- vcr/cassette.py | 3 +-- vcr/config.py | 10 +++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/vcr/cassette.py b/vcr/cassette.py index bdbfeae..f3934c3 100644 --- a/vcr/cassette.py +++ b/vcr/cassette.py @@ -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 diff --git a/vcr/config.py b/vcr/config.py index 9e5a80f..9f7a318 100644 --- a/vcr/config.py +++ b/vcr/config.py @@ -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