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

Cassettes are not injected after test cases! #174

Open
meysammeisam opened this issue Jul 12, 2021 · 1 comment
Open

Cassettes are not injected after test cases! #174

meysammeisam opened this issue Jul 12, 2021 · 1 comment

Comments

@meysammeisam
Copy link

On an umbrella app with the following children apps:

  • web service(phoenix)
  • external requests service
  • ...

Web service is managing the incoming requests and time to time uses the ExternalService commands/functions to do 3rd party calls. Using ExVCR I'm having automatic and custom cassettes for specific 3rd party requests, like:

  • translations (200)
  • api_401 (custom)
  • api_500 (custom)

Having the test cases in the same order as above, all of the non-200 tests are failing because VCR continues using the 200 cassette and doesn't eject it and us the custom cassettes.

@meysammeisam
Copy link
Author

The solutions suggested in these issues:

Are not valid anymore since the clear_mock option is removed already by this commit:

489826b

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