Comments (10)
Hi!
Thanks for opening an issue! A WIP PR is here
from pytest-recording.
@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.
from pytest-recording.
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
from pytest-recording.
@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!
from pytest-recording.
The new version is released! 🎉 Thank you for your patience
from pytest-recording.
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)
from pytest-recording.
Hi folks, I see the PR #110 has been suspended for now. Is there any plan or intention in this direction?
from pytest-recording.
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
from pytest-recording.
@Stranger6667 thanks for partial, I'll give it another shot right now…
from pytest-recording.
Pull request #118 now ready for a first round of review.
from pytest-recording.
Related Issues (20)
- `@pytest.mark.vcr(before_record_response=...)` behaves differently when recording and playing back HOT 1
- How to check if a cassette is playing back?
- failing tests on fresh repository clone HOT 1
- Allow using `pytest-recording` with a command-line flag only HOT 1
- [FEATURE] Disable Recording from Fixture HOT 1
- Cannot record when use GitPython HOT 2
- [BUG] tests/test_blocking_network.py::test_pycurl* failures due to whitespace (?) HOT 4
- [BUG] tests/test_blocking_network.py::test_block_network_with_allowed_hosts fail with no network (does not block DNS requests?))
- [FEATURE] usage for doctests HOT 6
- [FEATURE] Support pytest config file options
- [FEATURE] Delete casette if test fails when running with --record-mode=once HOT 1
- [BUG] having this plugin enabled breaks Intellij Idea failed test reports
- Is there a no decorator mode? HOT 2
- Conflict with requests-ntlm ('NoneType' object has no attribute 'raw') HOT 2
- Dependency Dashboard
- Filter sensitive data from response/how to use `before_record_response`? HOT 3
- [FEATURE] Add Python 3.10 support
- [FEATURE] Drop Python 3.5 / 3.6 support HOT 1
- Save responses to different cassette files depending on host
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytest-recording.