We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e11a25a commit 4ea020fCopy full SHA for 4ea020f
1 file changed
tests/unit/account_balance/test_account_balance.py
@@ -270,8 +270,8 @@ async def test_async_query_returns_acknowledgement(
270
assert response.ResponseCode == response_data["ResponseCode"]
271
assert response.ResponseDescription == response_data["ResponseDescription"]
272
273
- mock_async_http_client.post.assert_called_once()
274
- args, kwargs = mock_async_http_client.post.call_args
+ mock_async_http_client.post.assert_awaited_once()
+ args, kwargs = mock_async_http_client.post.await_args
275
assert args[0] == "/mpesa/accountbalance/v1/query"
276
assert kwargs["headers"]["Authorization"] == "Bearer test_async_token"
277
assert kwargs["headers"]["Content-Type"] == "application/json"
0 commit comments