Commit eb0cea62 authored by Joshua Roesslein's avatar Joshua Roesslein
Browse files

Filter out the request body in replay recordings.

- Prevents encoding errors when uploading binary data.
parent d355d9e1
......@@ -23,8 +23,10 @@ class TweepyTestCase(TestCase):
self.api.retry_delay = 5
if use_replay:
def filter_body(data): return ''
start_replay('tests/record.json',
headers_key=filter_headers_key(['Authorization']))
headers_key=filter_headers_key(['Authorization']),
body_key=filter_body)
def tearDown(self):
if use_replay:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment