From 2211a899a32b26449f65e3052968b3788a8e07c7 Mon Sep 17 00:00:00 2001 From: Morgan Kesler Date: Wed, 13 Apr 2022 09:05:23 -0400 Subject: [PATCH] fix(shippers): Add extra matcher for USPS Informed Delivery --- custom_components/mail_and_packages/const.py | 1 + tests/test_helpers.py | 1 + 2 files changed, 2 insertions(+) diff --git a/custom_components/mail_and_packages/const.py b/custom_components/mail_and_packages/const.py index 8f35fa89..e9429935 100644 --- a/custom_components/mail_and_packages/const.py +++ b/custom_components/mail_and_packages/const.py @@ -146,6 +146,7 @@ "USPSInformedDelivery@usps.gov", "USPSInformeddelivery@email.informeddelivery.usps.com", "USPSInformeddelivery@informeddelivery.usps.com", + "USPS Informed Delivery", ], "subject": ["Your Daily Digest"], }, diff --git a/tests/test_helpers.py b/tests/test_helpers.py index 1c5437b9..004dddf1 100644 --- a/tests/test_helpers.py +++ b/tests/test_helpers.py @@ -513,6 +513,7 @@ async def test_informed_delivery_emails( assert "USPSInformedDelivery@usps.gov" in caplog.text assert "USPSInformeddelivery@informeddelivery.usps.com" in caplog.text assert "USPSInformeddelivery@email.informeddelivery.usps.com" in caplog.text + assert "USPS Informed Delivery" in caplog.text async def test_get_mails_imageio_error(