Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
WilliamDEdwards opened this issue Jul 7, 2024 · 0 comments
Open

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

WilliamDEdwards opened this issue Jul 7, 2024 · 0 comments

Comments

@WilliamDEdwards
Copy link

WilliamDEdwards commented Jul 7, 2024

When:

  • Running in record mode none (meaning vcrpy is disallowed from recording any new episodes)
  • The cassette does not exist

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant