Closed nomasprime closed 2 months ago
Of course as soon as I raised this I discovered that cassettes are being recorded just in a location I didn't expect 😄
Hi! Thank you for bringing this topic! It is definitely something we can improve :) What do you think if we'll add some kind of quickstart guide that will include all steps from an existing project without VCR / pytest-recording to fully working test suite + document how cassettes are recorded? Are there any particular points (besides those you mentioned in the first message) you think we need to address first?
Hey @Stranger6667, that's a great idea.
I'm new to Python and think it was mostly me not realising a couple of fairly obvious things but your suggestion probably would reduce the friction to virtually nothing 👍
Would you mind reviewing it once I'll have a prototype? Not sure when I'll have time to get into this, but probably this week
Thanks @Stranger6667. Of course, happy to help anyway I can.
Implementation notes for anyone willing to contribute (or for myself, when I'll get back to it):
pip install pytest-recording
;pytest-vcr
and you need to uninstall pytest-vcr
to use pytest-recording
;--record-mode=all
, see cassettes created, then rerun tests, and no network is used;vcr_config
fixture should be in test files or in conftest.py
.
Readme doesn't document requirements, setup process, etc.
I've installed pytest-recording and hacking around now to get it working but would be great if this was all part of the Readme.