From 31623911d1e86d40e1ac9a565c0527ea55b001e0 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Fri, 23 Aug 2024 16:24:23 -0700 Subject: [PATCH] test_message_fetch: Avoid assumptions about fixture data set. --- zerver/tests/test_message_fetch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zerver/tests/test_message_fetch.py b/zerver/tests/test_message_fetch.py index d9c53b8656..c614968670 100644 --- a/zerver/tests/test_message_fetch.py +++ b/zerver/tests/test_message_fetch.py @@ -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")