-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
16 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -788,4 +788,4 @@ | |
"gls_delivering": 1, | ||
"gls_packages": 3, | ||
"gls_tracking": ["51687952111"], | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -796,7 +796,7 @@ async def test_amazon_search_results(hass, mock_imap_amazon_shipped): | |
result = amazon_search( | ||
mock_imap_amazon_shipped, "test/path", hass, "testfilename.jpg" | ||
) | ||
assert result == 40 | ||
assert result == 44 | ||
|
||
|
||
async def test_amazon_search_delivered( | ||
|
@@ -805,7 +805,7 @@ async def test_amazon_search_delivered( | |
result = amazon_search( | ||
mock_imap_amazon_delivered, "test/path", hass, "testfilename.jpg" | ||
) | ||
assert result == 40 | ||
assert result == 44 | ||
assert mock_download_img.called | ||
|
||
|
||
|
@@ -815,7 +815,7 @@ async def test_amazon_search_delivered_it( | |
result = amazon_search( | ||
mock_imap_amazon_delivered_it, "test/path", hass, "testfilename.jpg" | ||
) | ||
assert result == 40 | ||
assert result == 44 | ||
|
||
|
||
async def test_amazon_hub(hass, mock_imap_amazon_the_hub): | ||
|
@@ -1026,13 +1026,13 @@ async def test_image_file_name( | |
|
||
async def test_amazon_exception(hass, mock_imap_amazon_exception, caplog): | ||
result = amazon_exception(mock_imap_amazon_exception, ['""']) | ||
assert result["order"] == ["123-1234567-1234567"] * 10 | ||
assert result["count"] == 10 | ||
assert result["order"] == ["123-1234567-1234567"] * 11 | ||
assert result["count"] == 11 | ||
|
||
result = amazon_exception(mock_imap_amazon_exception, ["[email protected]"]) | ||
assert result["count"] == 11 | ||
assert result["count"] == 12 | ||
assert ( | ||
"Amazon domains to be checked: ['amazon.com', 'amazon.ca', 'amazon.co.uk', 'amazon.in', 'amazon.de', 'amazon.it', 'amazon.com.au', 'amazon.pl', '[email protected]', '[email protected]', '[email protected]']" | ||
"Amazon domains to be checked: ['amazon.com', 'amazon.ca', 'amazon.co.uk', 'amazon.in', 'amazon.de', 'amazon.it', 'amazon.com.au', 'amazon.pl', 'amazon.es', '[email protected]', '[email protected]', '[email protected]']" | ||
in caplog.text | ||
) | ||
|
||
|