Exception message says `Content should be a callback or binary data` in method create_response where the check is only for `binary_type`
Bug #1627506 reported by
Voith Mascarenhas
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
requests-mock |
Fix Released
|
Undecided
|
Jamie Lennox |
Bug Description
Hi,
I was reading the code for request-mock and found a minor mistake which I'd like to point out.
The following lines https:/
From what I understood by reading the code, method `create_response` should receive content as binary data. The error message should be modified to `Content should be binary data`. The same thing applies for parameter `text`.
description: | updated |
To post a comment you must log in.
I have opened a PR here: https:/ /github. com/openstack/ requests- mock/pull/ 8.
Please excuse me for my English. I don't know if the sentence I modified is grammatically right. Feel free to point out errors.