Closed Alexander-Serov closed 1 year ago
Hi!
Thanks for opening an issue! A WIP PR is here
@Alexander-Serov thanks for the report!
Expected behavior
correctly interact with vcrpy==5.0
intercept the new exception
I think you meant raising CassetteDecodeError
or CassetteNotFoundError
instead.
- suggestion: in future, limit compatibility to a major upstream version only
vcrpy~=5.0
and perform major updates manually.
I would like to vote for just vcrpy>=5.0
(or no limit) and leave the rest to the and user / consuming application. Bumping VCR.py from 4.x.x to 5.0.0 is a major version bump in semver so the user has full responsibility in my view.
@hartwork agreed on bumping to a major version, and pytest-recording
is the user in this case. But to avoid accidents like this one, when the pipeline becomes blocked, I would vote for setting vcrpy>=5.0,<6
in this repo, with the update to 6 done manually. This would give time to the maintainers of this repo to implement changes and test without people like me coming and opening issues. And the end user does not specify a version of vcrpy
since it's an internal dep of pytest-recording
for us. Just my 2 cents.
@Stranger6667 Thanks for already working on it!
I guess the props for working on the issue should go to @gadomski :)
At this point, instead of failing in runtime, it would be better to note that pytest-recording
is compatible only with vcrpy<4.4.0
(there is 1 failing test)
Hi folks, I see the PR https://github.com/kiwicom/pytest-recording/pull/110 has been suspended for now. Is there any plan or intention in this direction?
hi @mezhaka !
Yes, I'd like to add support for vcrpy==5.0.0
, but I don't have the bandwidth at the moment. Meantime, PRs (including those adding partial support) are welcome
@Stranger6667 thanks for partial, I'll give it another shot right now…
Pull request #118 now ready for a first round of review.
Thank you @hartwork !
I'll release a new version this week! :) Hopefully, I could also take a look at the tests that are failing on VCRPy 5.0
The new version is released! :tada: Thank you for your patience
Describe the bug
vcrpy==5.0
has been released andpytest-recording
does not work with it anymore. Avcrpy
maintainer has indicated that this is related to that VCR.py 5.0.0 is no longer expecting and catching ValueError but a new exception CassetteNotFoundError. Andpytest-recording
seems to not limit the version ofvcr.py
to the current major version, so it broke on upstream upgrade.To Reproduce Launch any test with
vcrpy==5.0
on cassettes created withvcrpy==4.*
. See here for an example of the output. The main message isExpected behavior
vcrpy~=5.0
and perform major updates manually.Environment (please complete the following information):
does not seem to be pertinent, but
Additional context Cc @hartwork