mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
realm: Rename plan type constants to be more descriptive.
It is confusing to have the plan type constants not be namespaced by the thing they represent. We already have a namespacing convention in place for constants, so we should use it for Realm.plan_type as well.
This commit is contained in:
@@ -1512,7 +1512,7 @@ class RealmLogoTest(UploadSerializeMixin, ZulipTestCase):
|
||||
|
||||
def test_upload_limited_plan_type(self) -> None:
|
||||
user_profile = self.example_user("iago")
|
||||
do_change_plan_type(user_profile.realm, Realm.LIMITED, acting_user=None)
|
||||
do_change_plan_type(user_profile.realm, Realm.PLAN_TYPE_LIMITED, acting_user=None)
|
||||
self.login_user(user_profile)
|
||||
with get_test_image_file(self.correct_files[0][0]) as fp:
|
||||
result = self.client_post(
|
||||
@@ -1556,7 +1556,7 @@ class RealmLogoTest(UploadSerializeMixin, ZulipTestCase):
|
||||
f"/user_avatars/{realm.id}/realm/{file_name}?version=2&night={is_night_str}",
|
||||
)
|
||||
|
||||
do_change_plan_type(realm, Realm.LIMITED, acting_user=user_profile)
|
||||
do_change_plan_type(realm, Realm.PLAN_TYPE_LIMITED, acting_user=user_profile)
|
||||
if self.night:
|
||||
self.assertEqual(realm.night_logo_source, Realm.LOGO_UPLOADED)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user