mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-18 20:03:53 +08:00
* test_*.py files are no longer executable * cleanup empty lines * update precommit * fixme * enable * build
18 lines
491 B
Python
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
|