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

Use requests-mock library, add tests for Slack compliance fix #215

Merged
merged 1 commit into from
Dec 23, 2015

Conversation

singingwolfboy
Copy link
Member

The tests are clearer and more accurate if we use the requests-mock library for mocking responses from requests. This pull request also adds a test for the Slack compliance fix.

@sigmavirus24
Copy link
Contributor

If we're going to hand write response data, I'd rather we use requests-mock. It's maintained and raises errors that are not "ConnectionError" when a request changes. responses is a poor excuse for a mocking library for requests.

Also, I'd rather we not mock any response bodies by hand, but that's a different arguement entirely.

@singingwolfboy singingwolfboy changed the title Use responses library, add tests for Slack compliance fix Use requests-mock library, add tests for Slack compliance fix Dec 23, 2015
@singingwolfboy
Copy link
Member Author

@sigmavirus24 I had no idea that responses was not maintained, and that requests-mock was the library to use instead. I've updated my pull request. Does it look good?

@sigmavirus24
Copy link
Contributor

👍 from me.

@Lukasa
Copy link
Member

Lukasa commented Dec 23, 2015

👍 from me too.

Lukasa added a commit that referenced this pull request Dec 23, 2015
Use requests-mock library, add tests for Slack compliance fix
@Lukasa Lukasa merged commit ff2f516 into requests:master Dec 23, 2015
@singingwolfboy
Copy link
Member Author

👯

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.

None yet

3 participants