Files
opendbc-meb/opendbc/sunnypilot/car/tests/test_car_list.py
Jason Wen c4f5a4f9d2 Merge branch 'upstream/opendbc/master' into sync-20260401
# Conflicts:
#	docs/CARS.md
#	opendbc/car/car_helpers.py
#	opendbc/car/chrysler/carcontroller.py
#	opendbc/car/chrysler/values.py
#	opendbc/car/honda/carcontroller.py
#	opendbc/car/honda/hondacan.py
#	opendbc/car/hyundai/hyundaicanfd.py
#	opendbc/car/rivian/interface.py
2026-04-02 21:05:06 -04:00

14 lines
454 B
Python

import json
import unittest
from opendbc.sunnypilot.car.platform_list import get_car_list, CAR_LIST_JSON_OUT
class TestCarList(unittest.TestCase):
def test_generator(self):
generated_car_list = json.dumps(get_car_list(), indent=2, ensure_ascii=False)
with open(CAR_LIST_JSON_OUT) as f:
current_car_list = f.read()
assert generated_car_list == current_car_list, "Run opendbc/sunnypilot/car/platform_list.py to update the car list"