carrot/opendbc_repo/opendbc/car/tests/test_platform_configs.py
Vehicle Researcher 4fca6dec8e openpilot v0.9.8 release
date: 2025-01-29T09:09:56
master commit: 227bb68e1891619b360b89809e6822d50d34228f
2025-01-29 09:09:58 +00:00

18 lines
480 B
Python

from opendbc.car.values import PLATFORMS
class TestPlatformConfigs:
def test_configs(self, subtests):
for name, platform in PLATFORMS.items():
with subtests.test(platform=str(platform)):
assert platform.config._frozen
if platform != "MOCK":
assert len(platform.config.dbc_dict) > 0
assert len(platform.config.platform_str) > 0
assert name == platform.config.platform_str
assert platform.config.specs is not None