test_message_fetch: Avoid assumptions about fixture data set.

This commit is contained in:
Tim Abbott 2024-08-23 16:24:23 -07:00
parent d708c3c039
commit 31623911d1
1 changed files with 1 additions and 1 deletions

View File

@ -2275,7 +2275,7 @@ class GetOldMessagesTest(ZulipTestCase):
narrow = [dict(operator="dm", operand=non_existent_direct_message_group, negated=True)]
result = self.get_and_check_messages(dict(narrow=orjson.dumps(narrow).decode()))
self.assertEqual([m["id"] for m in result["messages"]], [1, 3])
self.assertNotEqual(result["messages"], [])
def test_get_visible_messages_with_narrow_dm(self) -> None:
me = self.example_user("hamlet")