Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
refactor: Use `assertGreaterEqual` helper instead of `assertTrue`.
akshatdalton3ea1ff766575
diff --git a/zerver/tests/test_home.py b/zerver/tests/test_home.pyindex 59a7fa897dc..d1603ed1c53 100644--- a/zerver/tests/test_home.py+++ b/zerver/tests/test_home.py@@ -568,7 +568,7 @@ class HomeTest(ZulipTestCase):for field in buckets:users = page_params[field]- self.assertTrue(len(users) >= 3, field)+ self.assertGreaterEqual(len(users), 3, field)for rec in users:self.assertEqual(rec["user_id"], get_user(rec["email"], realm).id)if field == "realm_bots":diff --git a/zerver/tests/test_subs.py b/zerver/tests/test_subs.pyindex f01e792fd5d..f769640b271 100644--- a/zerver/tests/test_subs.py+++ b/zerver/tests/test_subs.py@@ -4880,7 +4880,7 @@ class GetSubscribersTest(ZulipTestCase):with queries_captured() as queries:subscribed_streams, _ = gather_subscriptions(mit_user_profile, include_subscribers=True)- self.assertTrue(len(subscribed_streams) >= 2)+ self.assertGreaterEqual(len(subscribed_streams), 2)for sub in subscribed_streams:if not sub["name"].startswith("mit_"):raise AssertionError("Unexpected stream!")