Add partial backup reload options #98
Annotations
5 errors
Run pytest:
tests/test_backups.py#L32
test_backups_list
mashumaro.exceptions.InvalidFieldValue: Field "backups" of type list[Backup] in BackupList has invalid value [{'slug': '58bc7491', 'name': 'Full Backup 2024-04-06 00:05:39', 'date': '2024-04-06T07:05:40.000000+00:00', 'type': 'full', 'size': 828.81, 'location': None, 'protected': False, 'compressed': True, 'content': {'homeassistant': True, 'addons': ['core_matter_server', 'core_samba', 'core_ssh', 'a0d7b954_vscode', 'core_configurator', 'core_mosquitto', 'd5369777_music_assistant_beta', 'cebe7a76_hassio_google_drive_backup'], 'folders': ['share', 'addons/local', 'ssl', 'media']}}, {'slug': '69558789', 'name': 'addon_core_mosquitto_6.4.0', 'date': '2024-05-31T20:48:03.838030+00:00', 'type': 'partial', 'size': 0.01, 'location': None, 'protected': False, 'compressed': True, 'content': {'homeassistant': False, 'addons': ['core_mosquitto'], 'folders': []}}]
|
Run pytest:
tests/test_backups.py#L52
test_backups_info
mashumaro.exceptions.InvalidFieldValue: Field "backups" of type list[Backup] in BackupsInfo has invalid value [{'slug': '58bc7491', 'name': 'Full Backup 2024-04-06 00:05:39', 'date': '2024-04-06T07:05:40.000000+00:00', 'type': 'full', 'size': 828.81, 'location': None, 'protected': False, 'compressed': True, 'content': {'homeassistant': True, 'addons': ['core_matter_server', 'core_samba', 'core_ssh', 'a0d7b954_vscode', 'core_configurator', 'core_mosquitto', 'd5369777_music_assistant_beta', 'cebe7a76_hassio_google_drive_backup'], 'folders': ['share', 'addons/local', 'ssl', 'media']}}, {'slug': '69558789', 'name': 'addon_core_mosquitto_6.4.0', 'date': '2024-05-31T20:48:03.838030+00:00', 'type': 'partial', 'size': 0.01, 'location': None, 'protected': False, 'compressed': True, 'content': {'homeassistant': False, 'addons': ['core_mosquitto'], 'folders': []}}]
|
Run pytest:
tests/test_backups.py#L212
test_backup_info
mashumaro.exceptions.MissingField: Field "locations" of type list[Optional[str]] is missing in BackupComplete instance
|
Run pytest:
tests/test_backups.py#L242
test_backup_info_no_homeassistant
mashumaro.exceptions.MissingField: Field "locations" of type list[Optional[str]] is missing in BackupComplete instance
|
Run pytest
Process completed with exit code 1.
|
Loading