f8e13417f2
date: 2026-08-15T14:20:10 master commit: d48cfa730bf21593b684efeaf3fd8940695e1dea
19 lines
504 B
Python
19 lines
504 B
Python
import unittest
|
|
from opendbc.car.values import PLATFORMS
|
|
|
|
|
|
class TestPlatformConfigs(unittest.TestCase):
|
|
def test_configs(self):
|
|
|
|
for name, platform in PLATFORMS.items():
|
|
with self.subTest(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
|