kiwicom / pytest-recording

A pytest plugin that allows recording network interactions via VCR.py
MIT License
425 stars 34 forks source link

Use default mode `once` in README #38

Closed northtree closed 4 years ago

northtree commented 4 years ago

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.

Stranger6667 commented 4 years ago

Hello @northtree !

It is a very good point, thank you for bringing it up :) Changed in 991ba71