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.
This commit is contained in:
Arun Sankar 2021-04-02 08:23:08 +05:30 committed by Tim Abbott
parent 12a439b8bd
commit 93c88705cf
1 changed files with 10 additions and 2 deletions

View File

@ -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 = [