feat: 完善 N7 智能座舱交互与控制链路
This commit is contained in:
@@ -77,6 +77,16 @@ def _native_action(
|
||||
|
||||
class DriverSeatNativeCanTests(unittest.TestCase):
|
||||
def setUp(self) -> None:
|
||||
self.memory_environment = patch.dict(
|
||||
os.environ,
|
||||
{
|
||||
"COGNITIVE_AGENT_DRIVER_SEAT_MEMORY_PATH": str(
|
||||
REPOSITORY_ROOT / "tests" / "fixtures" / "driver_seat_memory.json"
|
||||
)
|
||||
},
|
||||
)
|
||||
self.memory_environment.start()
|
||||
self.addCleanup(self.memory_environment.stop)
|
||||
self.runtime = NativeCanRuntime(REPOSITORY_ROOT)
|
||||
|
||||
def _compile(
|
||||
@@ -226,6 +236,10 @@ class DriverSeatNativeCanTests(unittest.TestCase):
|
||||
"seat.set_driver_position_native",
|
||||
{"slot": 2},
|
||||
),
|
||||
"召回主驾座椅2号记忆位置": (
|
||||
"seat.recall_driver_memory_native",
|
||||
{"slot": 2},
|
||||
),
|
||||
}
|
||||
for utterance, expected in cases.items():
|
||||
with self.subTest(utterance=utterance):
|
||||
|
||||
Reference in New Issue
Block a user