aboutsummaryrefslogtreecommitdiffstats
path: root/_pytest/test_command_reply.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2020-05-16 14:37:33 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2020-05-30 21:13:21 +0200
commitcd441f64fe106481e24cddfd0d9f3a956a76c969 (patch)
tree15b8faf3e961a576878f1dbc833ba54c1e03afe6 /_pytest/test_command_reply.py
parenta1abd66ff18e2bf64ca0e3cec382c5093a10f325 (diff)
downloadwee-slack-cd441f64fe106481e24cddfd0d9f3a956a76c969.tar.gz
Store ts -> hash mapping in hashed_messages
This is so we can show the hash for a thread message when the parent message isn't fetched.
Diffstat (limited to '_pytest/test_command_reply.py')
-rw-r--r--_pytest/test_command_reply.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/_pytest/test_command_reply.py b/_pytest/test_command_reply.py
index bbff617..a674d86 100644
--- a/_pytest/test_command_reply.py
+++ b/_pytest/test_command_reply.py
@@ -18,7 +18,7 @@ def test_replying_to_child_should_use_parent_ts(realish_eventrouter, team, chann
realish_eventrouter.receive_ws_callback(team.team_hash, None)
realish_eventrouter.handle_next()
- child_hash = channel_general.hash_message(child_ts)
+ child_hash = channel_general.hashed_messages[child_ts]
command_reply(None, channel_general.channel_buffer, '${} test'.format(child_hash))
sent = json.loads(team.ws.sentdata[0])