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

Default path_transformer=None. Fixes #199

This commit is contained in:
Aron Griffis
2015-08-28 07:25:03 -04:00
parent 083b1ec686
commit 0eda8ba482
5 changed files with 35 additions and 5 deletions

View File

@@ -23,7 +23,7 @@ class VCR(object):
return path
return ensure
def __init__(self, path_transformer=lambda x: x, before_record_request=None,
def __init__(self, path_transformer=None, before_record_request=None,
custom_patches=(), filter_query_parameters=(), ignore_hosts=(),
record_mode="once", ignore_localhost=False, filter_headers=(),
before_record_response=None, filter_post_data_parameters=(),
@@ -108,7 +108,7 @@ class VCR(object):
matcher_names = kwargs.get('match_on', self.match_on)
path_transformer = kwargs.get(
'path_transformer',
self.path_transformer or self.ensure_suffix('.yaml')
self.path_transformer
)
func_path_generator = kwargs.get(
'func_path_generator',