betamaxpy / betamax

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

Make cassette name sanitize more robust by replacing more special chars #132

Closed cjauvin closed 6 years ago

cjauvin commented 7 years ago

I ran into an issue on Windows where my arguments to a pytest.parametrize-decorated test were native paths (i.e. containing backslashes), which didn't play well with the files generated from the cassette name. This PR simply augments the set of chars that pytest._sanitize will replace, making it more robust (in particular on Windows).