diff --git a/tests/integration/test_homeassistant.py b/tests/integration/test_homeassistant.py index d6faedc..e39e810 100644 --- a/tests/integration/test_homeassistant.py +++ b/tests/integration/test_homeassistant.py @@ -9,6 +9,7 @@ import json import os import time import uuid +from datetime import datetime, timezone from urllib.parse import parse_qs, urlparse import httpx @@ -304,7 +305,8 @@ def test_an_install_that_couldnt_reach_home_assistant_is_asked_for_again(app): await _clean(app) await sched.poll(app, transport=ha.transport) await upd.start_update(app, ADDON, "someone", transport=ha.transport) - ha.backup_lands() + # Now, as the install's deadline counts from the backup while it is unsent. + ha.entities["sensor.backup_last_successful_automatic_backup"]["state"] = datetime.now(timezone.utc).isoformat() await upd.advance(app, transport=ha.transport) ha.down = True await upd.advance(app, transport=ha.transport) diff --git a/tests/integration/test_invites.py b/tests/integration/test_invites.py index 11d908b..541c584 100644 --- a/tests/integration/test_invites.py +++ b/tests/integration/test_invites.py @@ -82,7 +82,7 @@ def test_an_invite_is_emailed_and_the_invitee_makes_their_own_account_once(app, assert resp.status_code == 302 and resp.headers["Location"].endswith("?done=invited") assert len(sent) == 1 and sent[0]["To"] == to text = sent[0].get_body(("plain",)).get_content() - assert f"{aname} invited you to Steward" in text and "EDT" in text and "UTC" in text + assert f"{aname} invited you to Steward" in text and re.search(r"\bE[DS]T\b", text) and "UTC" in text key = _KEY.search(text).group(1) page = await (await admin.get(resp.headers["Location"])).get_data(as_text=True)