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

Match cassette requests on the request body #29

Merged
merged 3 commits into from
Sep 24, 2015

Conversation

nurugger07
Copy link
Contributor

The cassettes were only matching on url and method for the request. In cases were a request body was required but not provided, the request would still be matched and tests would pass. This PR validates that the request_body matches the expectation. If the request body does not match an InvalidRequestError is raised.

Ignoring the unused variables in the handle_stub_mode_test file
prevents warning messages when running tests
parroty added a commit that referenced this pull request Sep 24, 2015
Match cassette requests on the request body
@parroty parroty merged commit ad22057 into parroty:master Sep 24, 2015
@parroty
Copy link
Owner

parroty commented Sep 24, 2015

Thanks, it's great 😄

@parroty parroty mentioned this pull request Sep 24, 2015
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

Successfully merging this pull request may close these issues.

2 participants