I'm new to VCR.py and pytest-recording. Just setup for my scraper project today.
Followed by the README doc, I used --record-mode=all to run pytest. However, the tests will failed in CI (I used CircleCI) and the YAMLs under cassettes will be changed.
After read VCR.py doc, I change to --record-mode=once. Now all the cassettes won't be updated and all tests passed in CI.
IMO, I suggest to use --record-mode=once in README, which may be easier for beginner.
I'm new to
VCR.py
andpytest-recording
. Just setup for my scraper project today.Followed by the
README
doc, I used--record-mode=all
to runpytest
. However, the tests will failed in CI (I used CircleCI) and the YAMLs under cassettes will be changed.After read VCR.py doc, I change to
--record-mode=once
. Now all the cassettes won't be updated and all tests passed in CI.IMO, I suggest to use
--record-mode=once
in README, which may be easier for beginner.