mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 03:41:58 +00:00
Items in `django.core.mail.outbox` are by default typed as the less general `EmailMessage` type. Before accessing the attribute `alternatives`, we need to narrow the type to `EmailMultiAlternatives`. Then narrow the tuple value we want to access to `str` before using it in `assertIn` or `self.normalize_string`. Signed-off-by: Zixuan James Li <p359101898@gmail.com>
66 KiB
66 KiB