mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
emoji: Pass down content-type, rather than guessing from extension.
This commit is contained in:
committed by
Tim Abbott
parent
f3473defe1
commit
62a0611ddb
@@ -2665,7 +2665,9 @@ class NormalActionsTest(BaseAction):
|
||||
author = self.example_user("iago")
|
||||
with get_test_image_file("img.png") as img_file:
|
||||
with self.verify_action() as events:
|
||||
check_add_realm_emoji(self.user_profile.realm, "my_emoji", author, img_file)
|
||||
check_add_realm_emoji(
|
||||
self.user_profile.realm, "my_emoji", author, img_file, "image/png"
|
||||
)
|
||||
|
||||
check_realm_emoji_update("events[0]", events[0])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user