Skip to content

Commit

Permalink
Updated test for SMTP notifier (new Date field changes indices)
Browse files Browse the repository at this point in the history
  • Loading branch information
lars-devs committed Aug 18, 2024
1 parent 659f239 commit ff656f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_notifiers.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,8 @@ def test_smtp(test_item: Item, reservations: Reservations, favorites: Favorites,
assert body[2] == "From: [email protected]"
assert body[3] == "To: [email protected]"
assert body[4] == "Subject: New Magic Bags"
assert body[7] == 'Content-Type: text/html; charset="utf-8"'
assert body[11] == f"<b>=C3=81 =C3=AA</b> </br>Amount: {test_item.items_available}"
assert body[8] == 'Content-Type: text/html; charset="utf-8"'
assert body[12] == f"<b>=C3=81 =C3=AA</b> </br>Amount: {test_item.items_available}"


@pytest.fixture
Expand Down

0 comments on commit ff656f6

Please sign in to comment.