dragonpilot - 基於 openpilot 的開源駕駛輔助系統
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

19 lines
515 B

#!/usr/bin/env python3
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