Skip to content

Commit

Permalink
fix: update amazon delivered subject for amazon.de (#1009)
Browse files Browse the repository at this point in the history
* fix: update amazon delivered subject for amazon.de

* update tests
  • Loading branch information
firstof9 authored Nov 20, 2024
1 parent 080521c commit acea8e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions custom_components/mail_and_packages/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
"Entregado:",
"Bezorgd:",
"Livraison : Votre",
"Zugestellt: deine",
]
AMAZON_SHIPMENT_TRACKING = [
"shipment-tracking",
Expand Down
6 changes: 3 additions & 3 deletions tests/test_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ async def test_amazon_search_results(hass, mock_imap_amazon_shipped):
"testfilename.jpg",
"amazon.com",
)
assert result == 8
assert result == 9


@pytest.mark.asyncio
Expand All @@ -822,7 +822,7 @@ async def test_amazon_search_delivered(
"Amazon email search address: ['[email protected]', '[email protected]', '[email protected]']"
in caplog.text
)
assert result == 8
assert result == 9
assert mock_download_img.called


Expand All @@ -838,7 +838,7 @@ async def test_amazon_search_delivered_it(
"testfilename.jpg",
"amazon.it",
)
assert result == 8
assert result == 9


@pytest.mark.asyncio
Expand Down

0 comments on commit acea8e4

Please sign in to comment.