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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user