Skip to content

Commit

Permalink
colon for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
asgibson committed Oct 6, 2023
1 parent 530b5a3 commit 74b1bce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion onair/data_handling/redis_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def subscribe(self, subscriptions):

for s in subscriptions:
self.pubsub.subscribe(s)
print_msg(f"Subscribing to channel {s}")
print_msg(f"Subscribing to channel: {s}")

listen_thread = threading.Thread(target=self.message_listener)
listen_thread.start()
Expand Down
2 changes: 1 addition & 1 deletion test/onair/data_handling/test_redis_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def test_redis_adapter_DataSource_subscribe_subscribes_to_each_given_subscriptio
assert fake_pubsub.subscribe.call_count == len(arg_subscriptions)
for i in range(len(arg_subscriptions)):
assert fake_pubsub.subscribe.call_args_list[i].args == (arg_subscriptions[i],)
assert redis_adapter.print_msg.call_args_list[i].args == (f"Subscribing to channel {arg_subscriptions[i]}",)
assert redis_adapter.print_msg.call_args_list[i].args == (f"Subscribing to channel: {arg_subscriptions[i]}",)
assert threading.Thread.call_count == 1
assert threading.Thread.call_args_list[0].kwargs == ({'target': cut.message_listener})
assert fake_thread.start.call_count == 1
Expand Down

0 comments on commit 74b1bce

Please sign in to comment.