-
Notifications
You must be signed in to change notification settings - Fork 133
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
Suppress first request or mock a couple of requests from single cassette #43
Comments
Hello,
Single cassette can contain multiple http requests and responses. When replaying, one response among multiple ones, will be returned based on the request parameters. The following is one example.
Does this cover your scenario? I'm not so clear about "ignore this first request" scenario though. What would be the expected behavior when replaying for the first request? |
@parroty as you see topic changed a couple of times - it wasn't clear here as well and I just played with all possible options. |
Understood, thanks for the explanation. |
Hello,
The situation is that prior to performing request under test library must obtain a token from the service provider (do an OAuth authentication), which basically means that there will always be 2 requests.
Is it possible to ignore this first request or mock it within same cassette?
The text was updated successfully, but these errors were encountered: