betamaxpy / betamax

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

fix: clear X-Amzn-Trace-Id in httbin.org responses #202

Closed jhatler closed 6 months ago

jhatler commented 6 months ago

The httbin.org service returns a X-Amzn-Trace-Id header in its responses, which is different for each request. This causes the tests to fail. This clears the header before comparing responses.

Refs: #184, #190 Signed-off-by: Jaremy Hatler hatler.jaremy@gmail.com

jhatler commented 6 months ago

I've successfully tested this locally by running tox -e py on Ubuntu 22.04.

Additionally, #205 and #206 were merged on my fork (fixing the tox checks) so the other python targets could be tested. The tox checks passed successfully.

https://github.com/jhatler/betamax/pull/4