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:
@@ -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 == {}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user