Skip to content

Commit

Permalink
Fix response
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshilliard authored and alexrudd2 committed Jul 20, 2024
1 parent 8eb06fa commit 7f5e7a2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/test_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,9 @@ def test_execute(self, mock_time):
assert trans.retries == 3
assert not trans.retry_on_empty

trans.getTransaction = mock.MagicMock()
trans.getTransaction.return_value = "response"
trans.getTransaction = mock.MagicMock(return_value = b"response")
response = trans.execute(request)
assert response == "response"
assert response == b"response"
# No response
trans._recv = mock.MagicMock( # pylint: disable=protected-access
return_value=b"abcdef"
Expand Down

0 comments on commit 7f5e7a2

Please sign in to comment.