version: sunnypilot v2026.002.000 (staging) date: 2026-07-21T07:44:02 master commit: 2c334ede443d7391d27575af8c854a095ba702a8
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
|