ktosiek / pytest-vcr

Py.test integration with VCR.py
MIT License
150 stars 25 forks source link

Feat/rewrite failed cassette assertion message #28

Closed arthurHamon2 closed 1 year ago

arthurHamon2 commented 4 years ago

VCRpy has a new release (2.1.0) 🎉 It comes with an enhancement, the matchers are now using an assert statement in order to have more information on CannotOverwriteExistingCassetteException : https://vcrpy.readthedocs.io/en/latest/debugging.html#cannotoverwriteexistingcassetteexception

The matchers are written like this now : https://vcrpy.readthedocs.io/en/latest/advanced.html#register-your-own-request-matcher

The idea here is to rewrite the assert statements in the matchers with pytest assertion message for great debugging :)

Note : I did not find any solution to do this but to move the folder structure, hope it does not break anything, it shouldn't.

arthurHamon2 commented 1 year ago

Closing this as stated in https://github.com/kiwicom/pytest-recording/issues/52#issuecomment-660528322 pytest-recording is the library that improvement and is still maintained.