kevin1024 / vcrpy

Automatically mock your HTTP interactions to simplify and speed up testing
MIT License
2.72k stars 388 forks source link

"Can't overwrite existing cassette" but doesn't exist #852

Open WilliamDEdwards opened 4 months ago

WilliamDEdwards commented 4 months ago

When:

vcrpy logs:

vcr.errors.CannotOverwriteExistingCassetteException: Can't overwrite existing cassette ('/Users/williamedwards/python3-cyberfusion-cluster-support/tests/feature_tests/cassettes/test_htpasswd_files/test_htpasswd_file_create[UNIXUserWebFactory-False].yaml') in your current record mode ('none').

But the file doesn't exist.

The fact that an error is raised is correct (doesn’t exist), but its wording (can’t override) is wrong.