feat: 完善 N7 智能座舱交互与控制链路
This commit is contained in:
@@ -264,7 +264,7 @@ class Ch1DefaultTargetTests(unittest.TestCase):
|
||||
{"axis": "horizontal", "direction": "forward", "duration_ms": 2000},
|
||||
)
|
||||
|
||||
def test_model_adapter_overrides_only_implicit_targets_with_ch1_defaults(self) -> None:
|
||||
def test_model_adapter_preserves_every_nonempty_model_target(self) -> None:
|
||||
window = ModelPlanAdapter._apply_ch1_default_target(
|
||||
{
|
||||
"domain": "window",
|
||||
@@ -298,10 +298,10 @@ class Ch1DefaultTargetTests(unittest.TestCase):
|
||||
"副驾空调调到21度",
|
||||
)
|
||||
|
||||
self.assertEqual(window["target_scope"], "front_left")
|
||||
self.assertEqual(climate["target_scope"], "driver")
|
||||
self.assertEqual(seat["capability"], "seat.set_driver_heating_native")
|
||||
self.assertEqual(seat["target_scope"], "driver")
|
||||
self.assertEqual(window["target_scope"], "all")
|
||||
self.assertEqual(climate["target_scope"], "vehicle")
|
||||
self.assertEqual(seat["capability"], "seat.set_heating")
|
||||
self.assertEqual(seat["target_scope"], "passenger")
|
||||
self.assertEqual(explicit_passenger["target_scope"], "passenger")
|
||||
|
||||
def test_local_rules_skip_gpt_and_apply_safe_ch1_defaults(self) -> None:
|
||||
|
||||
Reference in New Issue
Block a user