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

Improved message on CannotOverwriteExistingCassetteException with no failed matchers #673

Open
edthedev opened this issue Dec 5, 2022 · 0 comments

Comments

@edthedev
Copy link

edthedev commented Dec 5, 2022

Context

Per discussion here:
Originally posted by @salomvary in #533 (comment)

CannotOverwriteExistingCassetteException can be raised along with 'no matchers failed' as the message details.

In many cases, setting vcr.allow_playback_repeats for the affected test will clear the issue.

Proposal

Update the error handler to recognize this corner case and emit a message encouraging developers to consider whether they need to set vcr.allow_playback_repeats

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

No branches or pull requests

2 participants