1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Fix spelling [runtime] (#114169)

This commit is contained in:
Marc Mueller
2024-03-25 11:32:50 +01:00
committed by GitHub
parent 8ae2fefcf3
commit 9b7cc088be
7 changed files with 18 additions and 16 deletions

View File

@@ -107,11 +107,11 @@ async def test_load_backups_with_exception(
"""Test loading backups with exception."""
manager = BackupManager(hass)
with patch("pathlib.Path.glob", return_value=[TEST_BACKUP.path]), patch(
"tarfile.open", side_effect=OSError("Test ecxeption")
"tarfile.open", side_effect=OSError("Test exception")
):
await manager.load_backups()
backups = await manager.get_backups()
assert f"Unable to read backup {TEST_BACKUP.path}: Test ecxeption" in caplog.text
assert f"Unable to read backup {TEST_BACKUP.path}: Test exception" in caplog.text
assert backups == {}