feat(n7web): sync N7 scene cards and optimize runtime
This commit is contained in:
@@ -16,8 +16,13 @@ from cognitive_agent.generated.can_semantic_protocol import (
|
||||
|
||||
|
||||
@pytest.fixture(scope="module")
|
||||
def vehicle_service() -> SeatDemoService:
|
||||
return SeatDemoService()
|
||||
def vehicle_service(tmp_path_factory: pytest.TempPathFactory) -> SeatDemoService:
|
||||
service = SeatDemoService()
|
||||
service.mode_profiles = type(service.mode_profiles)(
|
||||
service.root / "config" / "modes",
|
||||
user_root=tmp_path_factory.mktemp("assistant-capability-modes"),
|
||||
)
|
||||
return service
|
||||
|
||||
|
||||
def _catalog(
|
||||
@@ -269,7 +274,16 @@ def test_all_modes_are_discoverable_and_reference_callable_capabilities(
|
||||
"zero_gravity",
|
||||
}
|
||||
assert all(item["assistant_callable"] is True for item in modes)
|
||||
assert all(set(item["operation_ids"]) <= callable_ids for item in modes)
|
||||
assert all(
|
||||
set(item["operation_ids"])
|
||||
<= callable_ids | set(item.get("n7_transfer_operation_ids", []))
|
||||
for item in modes
|
||||
)
|
||||
assert all(
|
||||
not item.get("n7_transfer_operation_ids")
|
||||
or item.get("origin") == "n7_mqtt"
|
||||
for item in modes
|
||||
)
|
||||
assert (
|
||||
next(item for item in modes if item["id"] == "baby_nap")[
|
||||
"all_operations_have_native_binding"
|
||||
|
||||
Reference in New Issue
Block a user