zulip/zilencer/management/commands
Steve Howell 67cdf1a7b4 emojis: Use get_emoji_data.
The previous function was poorly named, asked for a
Realm object when realm_id sufficed, and returned a
tuple of strings that had different semantics.

I also avoid calling it duplicate times in a couple
places, although it was probably rarely the case that
both invocations actually happened if upstream
validations were working.

Note that there is a TypedDict called EmojiInfo, so I
chose EmojiData here.  Perhaps a better name would be
TinyEmojiData or something.

I also simplify the reaction tests with a verify
helper.
2023-07-17 09:35:53 -07:00
..
__init__.py
add_mock_conversation.py emojis: Use get_emoji_data. 2023-07-17 09:35:53 -07:00
calculate_first_visible_message_id.py management: Fix typing for management scripts. 2021-08-20 05:54:18 -07:00
compare_messages.py render_messages: Use JSON Lines format. 2021-05-20 13:12:16 -07:00
downgrade_small_realms_behind_on_payments.py billing: Downgrade small realms that are behind on payments. 2021-07-02 13:19:12 -07:00
invoice_plans.py python: Reformat with Black, except quotes. 2021-02-12 13:11:19 -08:00
mark_all_messages_unread.py python: Clean up getattr, setattr, delattr calls with literal names. 2022-10-10 08:40:28 -07:00
populate_db.py scheduled-messages: Remove ID from create scheduled message. 2023-05-26 18:05:55 -07:00
print_initial_password.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
profile_request.py requirements: Upgrade Python requirements. 2023-05-10 19:44:47 -07:00
queue_rate.py workers: Pass down if they are running multi-threaded. 2023-05-16 14:05:01 -07:00
render_messages.py render_messages: Tighten function signatures with generic QuerySet. 2022-07-07 11:27:43 -07:00
rundjangoserver.py ruff: Fix PIE810 Call `startswith` once with a `tuple`. 2023-02-08 16:40:35 -08:00
switch_realm_from_standard_to_plus_plan.py billing: Add command for switching plans from Standard to Plus. 2021-10-15 17:27:50 -07:00
sync_api_key.py python: Convert percent formatting to Python 3.6 f-strings. 2020-06-10 15:02:09 -07:00