mirror of
https://github.com/infiniteCable2/opendbc.git
synced 2026-06-08 10:54:51 +08:00
# 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
14 lines
454 B
Python
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"
|