feat: validate real-bench seat orchestration and self-repair
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
import unittest
|
||||
from pathlib import Path
|
||||
from unittest.mock import patch
|
||||
@@ -162,6 +163,17 @@ class NativeCanIntegrationTests(unittest.TestCase):
|
||||
self.assertEqual(info["data"]["bitrate"], 2_000_000)
|
||||
self.assertEqual(info["data"]["sample_point_percent"], 80)
|
||||
|
||||
def test_enabling_seat_hardware_does_not_implicitly_enable_vehicle_can(self) -> None:
|
||||
with patch.dict(
|
||||
os.environ,
|
||||
{"COGNITIVE_AGENT_HARDWARE_EXECUTION_ENABLED": "true"},
|
||||
clear=False,
|
||||
):
|
||||
os.environ.pop("COGNITIVE_AGENT_VEHICLE_CAN_ENABLED", None)
|
||||
settings = VehicleCanSettings.from_env(Path(REPOSITORY_ROOT))
|
||||
|
||||
self.assertFalse(settings.enabled)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user