From b4ba7da53bcc79e3b20131abeefd8260686a03e2 Mon Sep 17 00:00:00 2001 From: Trygve Aaberge Date: Tue, 15 Aug 2023 19:53:21 +0200 Subject: 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 --- _pytest/test_process_message.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '_pytest') 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 ) -- cgit