Skip to content

Commit

Permalink
Uses assert_called_with instead of called_with (#2375)
Browse files Browse the repository at this point in the history
  • Loading branch information
hiwakaba authored Nov 3, 2023
1 parent 779a23c commit 4861bee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_client_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,12 +220,12 @@ def test_send(cli, conn):
request = ProduceRequest[0](0, 0, [])
assert request.expect_response() is False
ret = cli.send(0, request)
assert conn.send.called_with(request)
conn.send.assert_called_with(request, blocking=False)
assert isinstance(ret, Future)

request = MetadataRequest[0]([])
cli.send(0, request)
assert conn.send.called_with(request)
conn.send.assert_called_with(request, blocking=False)


def test_poll(mocker):
Expand Down

0 comments on commit 4861bee

Please sign in to comment.