Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
test_message_fetch: Avoid assumptions about fixture data set.
Tim Abbott31623911d1e8
diff --git a/zerver/tests/test_message_fetch.py b/zerver/tests/test_message_fetch.pyindex d9c53b86562..c6149686706 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")