diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2023-08-15 19:53:21 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2023-08-16 00:50:15 +0200 |
commit | b4ba7da53bcc79e3b20131abeefd8260686a03e2 (patch) | |
tree | 3f5f6738eb422e768dade2da9fe92582ca9f3b3c /_pytest/test_process_message.py | |
parent | 743cb1c85f922c39ebeaca414f4703b9e47f080e (diff) | |
download | wee-slack-b4ba7da53bcc79e3b20131abeefd8260686a03e2.tar.gz |
Fix regression with messages not being shown as deleted
The commit 74da303 introduced a regression with messages not being shown
as deleted anymore because deleting only changed the text field, and
that's not being used anymore with that commit.
Fixes #897
Diffstat (limited to '_pytest/test_process_message.py')
-rw-r--r-- | _pytest/test_process_message.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/_pytest/test_process_message.py b/_pytest/test_process_message.py index 5017c10..d4e6a6d 100644 --- a/_pytest/test_process_message.py +++ b/_pytest/test_process_message.py @@ -74,6 +74,8 @@ def test_process_message(realish_eventrouter, team, user_alice): assert list(deleted_message_channel.messages.keys()) == [deleted_message_ts] deleted_str = "<[color red]>(deleted)<[color reset]>" assert ( - deleted_message_channel.messages[deleted_message_ts].message_json["text"] + deleted_message_channel.messages[deleted_message_ts].message_json[ + "_rendered_text" + ] == deleted_str ) |