Skip to content

Commit cc949ff

Browse files
committed
Update test_hardbounce_valid_json mock to return dict matching real get_body() behaviour
1 parent 0973712 commit cc949ff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/test_sailthru_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def test_hardbounce_blast_invalid_json(self):
126126

127127
def test_hardbounce_valid_json(self):
128128
mock_http_request = MagicMock()
129-
mock_http_request.return_value.get_body.return_value = '{"email": "menglander@sailthru.com"}'
129+
mock_http_request.return_value.get_body.return_value = {"email": "menglander@sailthru.com"}
130130

131131
self.client._http_request = mock_http_request
132132

0 commit comments

Comments
 (0)