Skip to content

Commit ba5e27a

Browse files
committed
tests: messages: Add test cases for crash bugfix from ZFL 138.
Confirmed as failing, if prior to the contributed bugfix in the previous commit.
1 parent e463d6c commit ba5e27a

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

tests/ui_tools/test_messages.py

+20-2
Original file line numberDiff line numberDiff line change
@@ -1301,7 +1301,16 @@ def test_keypress_STREAM_MESSAGE(
13011301
{"stream": True, "private": True},
13021302
{"stream": True, "private": True},
13031303
{"stream": None, "private": None},
1304-
id="no_msg_body_edit_limit",
1304+
id="no_msg_body_edit_limit:ZFL<138",
1305+
),
1306+
case(
1307+
{"sender_id": 1, "timestamp": 1, "subject": "test"},
1308+
True,
1309+
None,
1310+
{"stream": True, "private": True},
1311+
{"stream": True, "private": True},
1312+
{"stream": None, "private": None},
1313+
id="no_msg_body_edit_limit:ZFL>=138",
13051314
),
13061315
case(
13071316
{"sender_id": 1, "timestamp": 1, "subject": "(no topic)"},
@@ -1352,7 +1361,16 @@ def test_keypress_STREAM_MESSAGE(
13521361
{"stream": True, "private": True},
13531362
{"stream": True, "private": True},
13541363
{"stream": None, "private": None},
1355-
id="no_msg_body_edit_limit_with_no_topic",
1364+
id="no_msg_body_edit_limit_with_no_topic:ZFL<138",
1365+
),
1366+
case(
1367+
{"sender_id": 1, "timestamp": 45, "subject": "(no topic)"},
1368+
True,
1369+
None,
1370+
{"stream": True, "private": True},
1371+
{"stream": True, "private": True},
1372+
{"stream": None, "private": None},
1373+
id="no_msg_body_edit_limit_with_no_topic:ZFL>=138",
13561374
),
13571375
],
13581376
)

0 commit comments

Comments
 (0)