-
Notifications
You must be signed in to change notification settings - Fork 44
Fix Python 3 bytes/str incompatibility in simplejson and postback methods #78
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -64,7 +64,7 @@ def test_check_for_valid_actions(self): | |
|
|
||
| def test_receive_verify_post(self): | ||
| mock_http_request = MagicMock() | ||
| mock_http_request.return_value.get_body.return_value = '{"email":"menglander@sailthru.com"}' | ||
| mock_http_request.return_value.get_body.return_value = {"email": "menglander@sailthru.com"} | ||
|
||
|
|
||
| self.client._http_request = mock_http_request | ||
|
|
||
|
|
@@ -126,7 +126,7 @@ def test_hardbounce_blast_invalid_json(self): | |
|
|
||
| def test_hardbounce_valid_json(self): | ||
| mock_http_request = MagicMock() | ||
| mock_http_request.return_value.get_body.return_value = '{"email": "menglander@sailthru.com"}' | ||
| mock_http_request.return_value.get_body.return_value = {"email": "menglander@sailthru.com"} | ||
|
|
||
| self.client._http_request = mock_http_request | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.