emoji: Pass down content-type, rather than guessing from extension.

This commit is contained in:
Alex Vandiver
2024-07-11 18:46:33 +00:00
committed by Tim Abbott
parent f3473defe1
commit 62a0611ddb
12 changed files with 69 additions and 24 deletions

View File

@@ -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])