mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-16 21:56:29 +00:00
Fix flaky backup test (#5453)
This commit is contained in:
parent
ec7241c0fd
commit
42e704d563
@ -1917,7 +1917,8 @@ async def test_reload_multiple_locations(coresys: CoreSys, tmp_supervisor_data:
|
||||
assert coresys.backups.list_backups
|
||||
assert (backup := coresys.backups.get("7fed74c8"))
|
||||
assert backup.location in {None, "backup_test"}
|
||||
assert backup.locations == [None, "backup_test"]
|
||||
assert None in backup.locations
|
||||
assert "backup_test" in backup.locations
|
||||
assert backup.all_locations == {".cloud_backup", None, "backup_test"}
|
||||
|
||||
|
||||
@ -1967,7 +1968,8 @@ async def test_partial_reload_multiple_locations(
|
||||
assert coresys.backups.list_backups
|
||||
assert (backup := coresys.backups.get("7fed74c8"))
|
||||
assert backup.location is None
|
||||
assert backup.locations == [None, "backup_test"]
|
||||
assert None in backup.locations
|
||||
assert "backup_test" in backup.locations
|
||||
assert backup.all_locations == {".cloud_backup", None, "backup_test"}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user