mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-10 17:45:35 +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
|
```python
|
||||||
def scrub_string(string, replacement=''):
|
def scrub_string(string, replacement=''):
|
||||||
def before_record_reponse(response):
|
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
|
return scrub_string
|
||||||
|
|
||||||
my_vcr = vcr.VCR(
|
my_vcr = vcr.VCR(
|
||||||
|
|||||||
Reference in New Issue
Block a user