settings: Rename MAX_ICON_FILE_SIZE.

Rename MAX_ICON_FILE_SIZE to
MAX_ICON_FILE_SIZE_MIB reflecting
size in mebibytes.
This commit is contained in:
Gaurav Pandey
2021-05-29 12:25:34 +05:30
committed by Tim Abbott
parent 0f6bb210a6
commit 2ddc62e9b3
4 changed files with 5 additions and 5 deletions

View File

@@ -1416,7 +1416,7 @@ class RealmIconTest(UploadSerializeMixin, ZulipTestCase):
def test_realm_icon_upload_file_size_error(self) -> None:
self.login("iago")
with get_test_image_file(self.correct_files[0][0]) as fp:
with self.settings(MAX_ICON_FILE_SIZE=0):
with self.settings(MAX_ICON_FILE_SIZE_MIB=0):
result = self.client_post("/json/realm/icon", {"file": fp})
self.assert_json_error(result, "Uploaded file is larger than the allowed limit of 0 MiB")