Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
test_users: Fix comparison of differently sorted sets.
Tim Abbottf1c0309971c3
diff --git a/zerver/tests/test_users.py b/zerver/tests/test_users.pyindex 1868b1106af..62f0c8aa976 100644--- a/zerver/tests/test_users.py+++ b/zerver/tests/test_users.py@@ -1175,7 +1175,7 @@ class UserProfileTest(ZulipTestCase):UserHotspot.objects.filter(user=cordelia).delete()UserHotspot.objects.filter(user=iago).delete()- hotspots_completed = ["intro_reply", "intro_streams", "intro_topics"]+ hotspots_completed = {"intro_reply", "intro_streams", "intro_topics"}for hotspot in hotspots_completed:UserHotspot.objects.create(user=cordelia, hotspot=hotspot)@@ -1220,7 +1220,7 @@ class UserProfileTest(ZulipTestCase):self.assertEqual(cordelia.enter_sends, False)self.assertEqual(hamlet.enter_sends, True)- hotspots = list(UserHotspot.objects.filter(user=iago).values_list("hotspot", flat=True))+ hotspots = set(UserHotspot.objects.filter(user=iago).values_list("hotspot", flat=True))self.assertEqual(hotspots, hotspots_completed)def test_copy_default_settings_from_realm_user_default(self) -> None: