Release 260111
This commit is contained in:
17
opendbc_repo/opendbc/car/tests/test_platform_configs.py
Normal file
17
opendbc_repo/opendbc/car/tests/test_platform_configs.py
Normal file
@@ -0,0 +1,17 @@
|
||||
from opendbc.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 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
|
||||
Reference in New Issue
Block a user