mirror of https://github.com/zulip/zulip.git
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:
parent
123a46e41d
commit
a0e18cb06a
|
@ -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})")
|
||||
|
|
|
@ -592,6 +592,6 @@ class TestSendCustomEmail(ZulipTestCase):
|
|||
mock_print.mock_calls[1:],
|
||||
[
|
||||
call("Would send the above email to:"),
|
||||
call(" user10@zulip.testserver"),
|
||||
call(" hamlet@zulip.com (zulip)"),
|
||||
],
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue