From 93c88705cf459d08685fd225a2f0b45e8d25da12 Mon Sep 17 00:00:00 2001 From: Arun Sankar Date: Fri, 2 Apr 2021 08:23:08 +0530 Subject: [PATCH] default data: Add non ASCII and non BMP characters to stream names. Added emojis and Non ASCII characters to default stream names and descriptions. Added raw_emojis array under streams so that we can pass --extra-streams argument without --extra-users as it should be. --- zilencer/management/commands/populate_db.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/zilencer/management/commands/populate_db.py b/zilencer/management/commands/populate_db.py index 5a00f690a0..aa85973bdf 100644 --- a/zilencer/management/commands/populate_db.py +++ b/zilencer/management/commands/populate_db.py @@ -755,9 +755,15 @@ class Command(BaseCommand): # suite fast, don't add these users and subscriptions # when running populate_db for the test suite + # to imitate emoji insertions in stream names + raw_emojis = ["😎", "😂", "🐱‍👤"] + zulip_stream_dict: Dict[str, Dict[str, Any]] = { "devel": {"description": "For developing"}, - "all": {"description": "For **everything**"}, + # ビデオゲーム - VideoGames (japanese) + "ビデオゲーム": { + "description": "Share your favorite video games! {}".format(raw_emojis[2]) + }, "announce": { "description": "For announcements", "stream_post_policy": Stream.STREAM_POST_POLICY_ADMINS, @@ -767,7 +773,9 @@ class Command(BaseCommand): "social": {"description": "For socializing"}, "test": {"description": "For testing `code`"}, "errors": {"description": "For errors"}, - "sales": {"description": "For sales discussion"}, + # 조리법 - Recipes (Korean) , Пельмени - Dumplings (Russian) + "조리법 " + + raw_emojis[0]: {"description": "Everything cooking, from pasta to Пельмени"}, } extra_stream_names = [