betamaxpy / betamax

A VCR imitation designed only for python-requests.
https://betamax.readthedocs.io/en/latest/
Other
562 stars 61 forks source link

Add shortcircuit condition if text_to_replace is a blank string #170

Closed pjbollinger closed 4 years ago

pjbollinger commented 5 years ago

This is to fix #169.

I couldn't think of a better way to test this than to add an additional .replace to the test_replace test case and if this code doesn't exist, it would alter interaction strings.