Skip to content

Commit

Permalink
Merge pull request #1 from dgorelik/dgorelik-patch-1
Browse files Browse the repository at this point in the history
Use kwargs in test_subscriber_client
  • Loading branch information
dgorelik authored Jun 18, 2019
2 parents a0492a1 + c44f61e commit 26de36d
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ def test_subscribe(manager_open):

assert future._manager._subscription == "sub_name_a"
manager_open.assert_called_once_with(
mock.ANY, mock.sentinel.callback, future.set_exception
mock.ANY,
callback=mock.sentinel.callback,
on_callback_error=future.set_exception,
)


Expand All @@ -100,5 +102,7 @@ def test_subscribe_options(manager_open):
assert future._manager.flow_control == flow_control
assert future._manager._scheduler == scheduler
manager_open.assert_called_once_with(
mock.ANY, mock.sentinel.callback, future.set_exception
mock.ANY,
callback=mock.sentinel.callback,
on_callback_error=future.set_exception,
)

0 comments on commit 26de36d

Please sign in to comment.