From 193835d88d01e349eee42dfd5df72b4953b99aa3 Mon Sep 17 00:00:00 2001 From: firestar5683 <168790843+firestar5683@users.noreply.github.com> Date: Sat, 21 Nov 2026 12:09:16 -0600 Subject: [PATCH] Use real vehicle params in optional feature tests --- openpilot/starpilot/tests/test_global_optional_features.py | 4 ++-- prebuilt.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/openpilot/starpilot/tests/test_global_optional_features.py b/openpilot/starpilot/tests/test_global_optional_features.py index eb9353482f..1b6415125e 100644 --- a/openpilot/starpilot/tests/test_global_optional_features.py +++ b/openpilot/starpilot/tests/test_global_optional_features.py @@ -4,6 +4,7 @@ from unittest.mock import Mock, patch import pytest +from opendbc.car.structs import CarParams from opendbc.car.toyota.interface import CarInterface from opendbc.car.toyota.values import CAR from openpilot.common.params import Params @@ -32,8 +33,7 @@ def test_generic_admission_is_brand_independent_and_stock_is_display_only(tmp_pa params = Params(str(tmp_path)) params.put_bool('CurveSpeedController', True, block=True) params.put_bool('SpeedLimitController', True, block=True) - cp = NS(brand=brand, carFingerprint=brand + '_native', openpilotLongitudinalControl=True, - pcmCruise=True, passive=False, dashcamOnly=False, notCar=False) + cp = CarParams(brand=brand, carFingerprint=brand + '_native', openpilotLongitudinalControl=True, pcmCruise=True) for feature in ('conditional', 'curve', 'profile', 'slc', 'vision'): assert enabled(params, cp, feature, {}) assert diagnostic_choice_enabled({}, cp) diff --git a/prebuilt.json b/prebuilt.json index 77c5c28361..9000b488da 100644 --- a/prebuilt.json +++ b/prebuilt.json @@ -1 +1 @@ -{"protected_inventory_sha256": "b5621033298a263a2cfc065be1786561de9cf223d4dc72180e43d11fd1e928c3", "schema_version": 1} +{"protected_inventory_sha256": "01001c20e7af15c0ea7bdb1253f8b6389d340741cd5847fc8edee37bfa1f9e77", "schema_version": 1}