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

Fix missing quotes on Custom Response Filtering

Missing quotes are bad
This commit is contained in:
Rômulo Oliveira
2015-01-28 11:34:47 -02:00
parent 14ef1e87f7
commit 4991d6f1c8

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(