mirror of https://github.com/zulip/zulip.git
test_message_fetch: Avoid assumptions about fixture data set.
This commit is contained in:
parent
d708c3c039
commit
31623911d1
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue