From: Thomas Grainger Date: Thu, 16 Jul 2015 14:13:19 +0000 (+0100) Subject: Fix before_record_reponse doc X-Git-Tag: v1.7.0~11^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=025a3b422da27961d1258e19dd5171bc954c3a0a;p=vcrpy.git Fix before_record_reponse doc --- diff --git a/README.rst b/README.rst index 53d9e4b..fc64d4a 100644 --- a/README.rst +++ b/README.rst @@ -419,10 +419,10 @@ that of ``before_record``: def scrub_string(string, replacement=''): def before_record_reponse(response): return response['body']['string'] = response['body']['string'].replace(string, replacement) - return scrub_string + return before_record_reponse my_vcr = vcr.VCR( - before_record=scrub_string(settings.USERNAME, 'username'), + before_record_reponse=scrub_string(settings.USERNAME, 'username'), ) with my_vcr.use_cassette('test.yml'): # your http code here