@@ -1678,6 +1678,7 @@ def test_apply_any_platform_selection_serializationv1(self):
1678
1678
del platform_data ["Win64" ]
1679
1679
del platform_data ["WindowsStoreApps" ]
1680
1680
del platform_data ["iOS" ]
1681
+ del platform_data ["tvOS" ]
1681
1682
1682
1683
expected_metadata = copy .deepcopy (
1683
1684
export_unity_package .PLUGIN_IMPORTER_METADATA_TEMPLATE )
@@ -1697,6 +1698,7 @@ def test_apply_any_platform_selection_serializationv1(self):
1697
1698
platform_data ["Win64" ]["enabled" ] = 1
1698
1699
platform_data ["WindowsStoreApps" ]["enabled" ] = 1
1699
1700
platform_data ["iOS" ]["enabled" ] = 1
1701
+ platform_data ["tvOS" ]["enabled" ] = 1
1700
1702
1701
1703
all_platforms_enabled = (
1702
1704
export_unity_package .Asset .apply_any_platform_selection (
@@ -2051,6 +2053,15 @@ def test_importer_metadata_ios_only(self):
2051
2053
self .package , {"importer" : "PluginImporter" ,
2052
2054
"platforms" : ["iOS" ]}).importer_metadata )
2053
2055
2056
+ def test_importer_metadata_tvos_only (self ):
2057
+ """Create metadata that only targets tvOS."""
2058
+ self .plugin_metadata ["PluginImporter" ]["platformData" ]["tvOS" ]["enabled" ] = 1
2059
+ self .assertEqual (
2060
+ self .plugin_metadata ,
2061
+ export_unity_package .AssetConfiguration (
2062
+ self .package , {"importer" : "PluginImporter" ,
2063
+ "platforms" : ["tvOS" ]}).importer_metadata )
2064
+
2054
2065
def test_importer_metadata_standalone_invalid_cpu (self ):
2055
2066
"""Create metadata with an invalid CPU."""
2056
2067
with self .assertRaises (export_unity_package .ProjectConfigurationError ):
0 commit comments