1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-08 16:53:23 +00:00

Merge pull request #135 from RomuloOliveira/patch-1

Fix missing quotes on Custom Response Filtering
This commit is contained in:
Ivan 'Goat' Malison
2015-01-28 12:02:57 -08:00

View File

@@ -336,7 +336,7 @@ argument. It's usage is similar to that of `before_record`:
```python
def scrub_string(string, replacement=''):
def before_record_reponse(response):
return response['body']['string] = response['body']['string].replace(string, replacement)
return response['body']['string'] = response['body']['string'].replace(string, replacement)
return scrub_string
my_vcr = vcr.VCR(