IQ.Pilot Release Commit @ 10bd946

This commit is contained in:
IQ.Lvbs CI [bot]
2026-07-25 19:00:04 -05:00
parent 729bde8fb9
commit 4a5ecbeb21
31 changed files with 770 additions and 921 deletions

View File

@@ -1,24 +0,0 @@
from types import SimpleNamespace
import pytest
from openpilot.selfdrive.monitoring.dmonitoringd import get_dm_inputs
@pytest.mark.parametrize("enabled, lat_active, expected", [
(False, False, False),
(True, False, True),
(False, True, True),
(True, True, True),
])
def test_iq_enabled_adapter(enabled, lat_active, expected):
sm = {
'driverStateV2': object(),
'liveCalibration': object(),
'carState': object(),
'selfdriveState': SimpleNamespace(enabled=enabled),
'modelV2': object(),
'carControl': SimpleNamespace(latActive=lat_active),
}
assert get_dm_inputs(sm)['selfdriveState'].enabled == expected