Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
support: Add test for get_org_type_display_name.
Tim Abbott4d0611c3635e
diff --git a/analytics/tests/test_support_views.py b/analytics/tests/test_support_views.pyindex b67c4b71798..6566ef6a64d 100644--- a/analytics/tests/test_support_views.py+++ b/analytics/tests/test_support_views.py@@ -292,6 +292,10 @@ class TestSupportEndpoint(ZulipTestCase):check_realm_reactivation_link_query_result(result)check_zulip_realm_query_result(result)+ def test_get_org_type_display_name(self) -> None:+ self.assertEqual(get_org_type_display_name(Realm.ORG_TYPES["business"]["id"]), "Business")+ self.assertEqual(get_org_type_display_name(883), "")+@mock.patch("analytics.views.support.update_billing_method_of_current_plan")def test_change_billing_method(self, m: mock.Mock) -> None:cordelia = self.example_user("cordelia")