Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pubsub: Use kwargs in test_subscriber_client #8414

Merged
merged 2 commits into from
Jun 19, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,
)