mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
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:
committed by
Tim Abbott
parent
0f6bb210a6
commit
2ddc62e9b3
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user