mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 15:33:30 +00:00
send_custom_email: Improve printing of outgoing emails.
The fake email addresses are not useful for debugging/confirmation, and additionally it's nice to have the realms listed as well.
This commit is contained in:
@@ -91,4 +91,4 @@ class Command(ZulipBaseCommand):
|
|||||||
if options["dry_run"]:
|
if options["dry_run"]:
|
||||||
print("Would send the above email to:")
|
print("Would send the above email to:")
|
||||||
for user in users:
|
for user in users:
|
||||||
print(f" {user.email}")
|
print(f" {user.delivery_email} ({user.realm.string_id})")
|
||||||
|
|||||||
@@ -592,6 +592,6 @@ class TestSendCustomEmail(ZulipTestCase):
|
|||||||
mock_print.mock_calls[1:],
|
mock_print.mock_calls[1:],
|
||||||
[
|
[
|
||||||
call("Would send the above email to:"),
|
call("Would send the above email to:"),
|
||||||
call(" user10@zulip.testserver"),
|
call(" hamlet@zulip.com (zulip)"),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user