@@ -741,11 +741,13 @@ def test_print_strategy_profile_status_json_matches_registry(self):
741741 for key in (
742742 "canonical_profile" ,
743743 "display_name" ,
744+ "display_name_zh" ,
744745 "domain" ,
745746 "eligible" ,
746747 "enabled" ,
747748 "platform" ,
748749 )
750+ if key in row
749751 }
750752 for row in rows
751753 ],
@@ -758,6 +760,10 @@ def test_print_strategy_profile_status_json_matches_registry(self):
758760 self .assertFalse (by_profile ["global_etf_rotation" ]["requires_strategy_config_path" ])
759761 self .assertNotIn ("tech_communication_pullback_enhancement" , by_profile )
760762 self .assertEqual (by_profile ["mega_cap_leader_rotation_top50_balanced" ]["profile_group" ], "snapshot_backed" )
763+ self .assertEqual (
764+ by_profile ["mega_cap_leader_rotation_top50_balanced" ]["display_name_zh" ],
765+ "美股超大盘50强平衡龙头轮动" ,
766+ )
761767 self .assertEqual (by_profile ["mega_cap_leader_rotation_top50_balanced" ]["input_mode" ], "feature_snapshot" )
762768 self .assertTrue (by_profile ["mega_cap_leader_rotation_top50_balanced" ]["requires_snapshot_artifacts" ])
763769 self .assertFalse (by_profile ["mega_cap_leader_rotation_top50_balanced" ]["requires_strategy_config_path" ])
@@ -788,6 +794,7 @@ def test_print_strategy_profile_status_table_contains_expected_headers(self):
788794
789795 self .assertIn ("canonical_profile" , result .stdout )
790796 self .assertIn ("display_name" , result .stdout )
797+ self .assertIn ("display_name_zh" , result .stdout )
791798 self .assertIn ("profile_group" , result .stdout )
792799 self .assertIn ("input_mode" , result .stdout )
793800 self .assertIn ("requires_snapshot_artifacts" , result .stdout )
@@ -801,6 +808,7 @@ def test_print_strategy_profile_status_table_contains_expected_headers(self):
801808 self .assertIn ("HK Dividend-Gold Defensive Rotation" , result .stdout )
802809 self .assertIn ("Russell 1000 Multi-Factor" , result .stdout )
803810 self .assertIn ("Mega Cap Leader Rotation Top50 Balanced" , result .stdout )
811+ self .assertIn ("美股超大盘50强平衡龙头轮动" , result .stdout )
804812 self .assertNotIn ("Tech/Communication Pullback Enhancement" , result .stdout )
805813 self .assertNotIn ("hk_blue_chip_leader_rotation" , result .stdout )
806814 self .assertNotIn ("hk_index_mean_reversion" , result .stdout )
0 commit comments