aboutsummaryrefslogtreecommitdiffstats
path: root/_pytest/test_process_message.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-08-15 19:53:21 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2023-08-16 00:50:15 +0200
commitb4ba7da53bcc79e3b20131abeefd8260686a03e2 (patch)
tree3f5f6738eb422e768dade2da9fe92582ca9f3b3c /_pytest/test_process_message.py
parent743cb1c85f922c39ebeaca414f4703b9e47f080e (diff)
downloadwee-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.py4
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
)