@@ -146,6 +146,7 @@ def test_catalog_helpers_resolve_alias_and_metadata(self) -> None:
146146 canonical_profile = "global_etf_rotation" ,
147147 display_name = "Global ETF Rotation Defense" ,
148148 description = "rotation" ,
149+ localized_display_names = {"zh" : "全球 ETF 防守轮动" },
149150 aliases = ("global_macro_etf_rotation" ,),
150151 cadence = "quarterly" ,
151152 benchmark = "VOO" ,
@@ -175,6 +176,7 @@ def test_catalog_helpers_resolve_alias_and_metadata(self) -> None:
175176 rows = build_strategy_index_rows (catalog )
176177 by_profile = {row ["canonical_profile" ]: row for row in rows }
177178 self .assertEqual (by_profile ["global_etf_rotation" ]["display_name" ], "Global ETF Rotation Defense" )
179+ self .assertEqual (by_profile ["global_etf_rotation" ]["display_name_zh" ], "全球 ETF 防守轮动" )
178180 self .assertEqual (by_profile ["global_etf_rotation" ]["target_mode" ], "weight" )
179181
180182 def test_platform_policy_helpers_build_matrix_and_resolve_enabled_profile (self ) -> None :
@@ -185,6 +187,7 @@ def test_platform_policy_helpers_build_matrix_and_resolve_enabled_profile(self)
185187 canonical_profile = "global_etf_rotation" ,
186188 display_name = "Global ETF Rotation Defense" ,
187189 description = "rotation" ,
190+ localized_display_names = {"zh" : "全球 ETF 防守轮动" },
188191 aliases = ("global_macro_etf_rotation" ,),
189192 ),
190193 },
@@ -204,6 +207,7 @@ def test_platform_policy_helpers_build_matrix_and_resolve_enabled_profile(self)
204207 )
205208 matrix = build_platform_profile_matrix (catalog , policy = policy )
206209 self .assertEqual (matrix [0 ]["display_name" ], "Global ETF Rotation Defense" )
210+ self .assertEqual (matrix [0 ]["display_name_zh" ], "全球 ETF 防守轮动" )
207211 definition = resolve_platform_strategy_definition (
208212 "global_macro_etf_rotation" ,
209213 platform_id = "ibkr" ,
@@ -216,6 +220,7 @@ def test_platform_policy_helpers_build_matrix_and_resolve_enabled_profile(self)
216220 policy = policy ,
217221 eligible_profiles = frozenset ({"global_etf_rotation" }),
218222 )
223+ self .assertEqual (status_matrix [0 ]["display_name_zh" ], "全球 ETF 防守轮动" )
219224 self .assertEqual (status_matrix [0 ]["eligible" ], True )
220225 self .assertEqual (status_matrix [0 ]["enabled" ], True )
221226
0 commit comments