Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
corporate: Remove now unused is_sponsored_realm.
Lauryn Menard45df5750ae43
diff --git a/corporate/lib/stripe.py b/corporate/lib/stripe.pyindex ca719b96d88..442df4affba 100644--- a/corporate/lib/stripe.py+++ b/corporate/lib/stripe.py@@ -3145,10 +3145,6 @@ def is_realm_on_free_trial(realm: Realm) -> bool:return plan is not None and plan.is_free_trial()-def is_sponsored_realm(realm: Realm) -> bool:- return realm.plan_type == Realm.PLAN_TYPE_STANDARD_FREE--def do_change_plan_status(plan: CustomerPlan, status: int) -> None:plan.status = statusplan.save(update_fields=["status"])diff --git a/corporate/tests/test_stripe.py b/corporate/tests/test_stripe.pyindex 863d25a3b59..6c4d8c5930e 100644--- a/corporate/tests/test_stripe.py+++ b/corporate/tests/test_stripe.py@@ -67,7 +67,6 @@ from corporate.lib.stripe import (invoice_plans_as_needed,is_free_trial_offer_enabled,is_realm_on_free_trial,- is_sponsored_realm,next_month,sign_string,stripe_customer_has_credit_card_as_default_payment_method,@@ -4558,14 +4557,6 @@ class BillingHelpersTest(ZulipTestCase):plan.save(update_fields=["status"])self.assertTrue(is_realm_on_free_trial(realm))- def test_is_sponsored_realm(self) -> None:- realm = get_realm("zulip")- self.assertFalse(is_sponsored_realm(realm))-- realm.plan_type = Realm.PLAN_TYPE_STANDARD_FREE- realm.save()- self.assertTrue(is_sponsored_realm(realm))-def test_change_remote_server_plan_type(self) -> None:server_uuid = str(uuid.uuid4())remote_server = RemoteZulipServer.objects.create(