Release 260111
This commit is contained in:
0
opendbc_repo/opendbc/car/subaru/tests/__init__.py
Normal file
0
opendbc_repo/opendbc/car/subaru/tests/__init__.py
Normal file
10
opendbc_repo/opendbc/car/subaru/tests/test_subaru.py
Normal file
10
opendbc_repo/opendbc/car/subaru/tests/test_subaru.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from opendbc.car.subaru.fingerprints import FW_VERSIONS
|
||||
|
||||
|
||||
class TestSubaruFingerprint:
|
||||
def test_fw_version_format(self):
|
||||
for platform, fws_per_ecu in FW_VERSIONS.items():
|
||||
for (ecu, _, _), fws in fws_per_ecu.items():
|
||||
fw_size = len(fws[0])
|
||||
for fw in fws:
|
||||
assert len(fw) == fw_size, f"{platform} {ecu}: {len(fw)} {fw_size}"
|
||||
Reference in New Issue
Block a user