diff options
author | luk1337 <priv.luk@gmail.com> | 2019-05-29 15:50:41 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2019-05-29 15:50:41 +0200 |
commit | 976041d5fe33d4ddd8ad5749fc8e203f5b1f06c6 (patch) | |
tree | a69b53f8a4d5af7f45b29afc46e4d6e340502c16 /_pytest | |
parent | 7bff4f2856a2cc8126fa8d2fecbd07e0422f2fb4 (diff) | |
download | wee-slack-976041d5fe33d4ddd8ad5749fc8e203f5b1f06c6.tar.gz |
Fix /topic command output (#691)
* This change makes sure the /topic command outputs
'Topic for #random is ""' instead of
'Topic for #random is "{'value': ''}"'.
Diffstat (limited to '_pytest')
-rw-r--r-- | _pytest/test_topic_command.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/_pytest/test_topic_command.py b/_pytest/test_topic_command.py index c632148..b4c851d 100644 --- a/_pytest/test_topic_command.py +++ b/_pytest/test_topic_command.py @@ -58,7 +58,7 @@ def test_call_topic_without_arguments(realish_eventrouter, channel_general): result = topic_command_cb(None, current_buffer, command) fake_prnt.assert_called_with( channel_general.channel_buffer, - 'Topic for {} is "{}"'.format(channel_general.name, channel_general.topic), + 'Topic for {} is "{}"'.format(channel_general.name, channel_general.topic['value']), ) assert result == wee_slack.w.WEECHAT_RC_OK_EAT |