Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
send_custom_email: Improve printing of outgoing emails.
Tim Abbotta0e18cb06ae1
diff --git a/zerver/management/commands/send_custom_email.py b/zerver/management/commands/send_custom_email.pyindex 05288483008..5947fd5b99f 100644--- a/zerver/management/commands/send_custom_email.py+++ b/zerver/management/commands/send_custom_email.py@@ -91,4 +91,4 @@ class Command(ZulipBaseCommand):if options["dry_run"]:print("Would send the above email to:")for user in users:- print(f" {user.email}")+ print(f" {user.delivery_email} ({user.realm.string_id})")diff --git a/zerver/tests/test_management_commands.py b/zerver/tests/test_management_commands.pyindex 603267d3a5f..026a73c6c2b 100644--- a/zerver/tests/test_management_commands.py+++ b/zerver/tests/test_management_commands.py@@ -592,6 +592,6 @@ class TestSendCustomEmail(ZulipTestCase):mock_print.mock_calls[1:],[call("Would send the above email to:"),- call(" [email protected]"),+ call(" [email protected] (zulip)"),],)