@@ -528,3 +528,30 @@ async def test_partial_backup_model(
528528 """Test partial backup model parsing and serializing."""
529529 assert PartialBackupOptions .from_dict (as_dict ) == options
530530 assert options .to_dict () == as_dict
531+
532+
533+ @pytest .mark .parametrize (
534+ ("options" , "as_dict" ),
535+ [
536+ (FullBackupOptions (name = "Test" ), {"name" : "Test" }),
537+ (FullBackupOptions (password = "test" ), {"password" : "test" }), # noqa: S106
538+ (FullBackupOptions (compressed = True ), {"compressed" : True }),
539+ (
540+ FullBackupOptions (homeassistant_exclude_database = True ),
541+ {"homeassistant_exclude_database" : True },
542+ ),
543+ (FullBackupOptions (background = True ), {"background" : True }),
544+ (
545+ FullBackupOptions (location = [".cloud_backup" , "test" ]),
546+ {"location" : [".cloud_backup" , "test" ]},
547+ ),
548+ (FullBackupOptions (location = "test" ), {"location" : "test" }),
549+ (FullBackupOptions (location = None ), {"location" : None }),
550+ ],
551+ )
552+ async def test_full_backup_model (
553+ options : FullBackupOptions , as_dict : dict [str , Any ]
554+ ) -> None :
555+ """Test full backup model parsing and serializing."""
556+ assert FullBackupOptions .from_dict (as_dict ) == options
557+ assert options .to_dict () == as_dict
0 commit comments