carrot/selfdrive/car/tests/test_platform_configs.py
Vehicle Researcher d64fb1838d openpilot v0.9.7 release
date: 2024-06-11T01:36:39
master commit: f8cb04e4a8b032b72a909f68b808a50936184bee
2024-06-11 16:32:27 -07:00

18 lines
491 B
Python

from openpilot.selfdrive.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 "pt" in platform.config.dbc_dict
assert len(platform.config.platform_str) > 0
assert name == platform.config.platform_str
assert platform.config.specs is not None