diff --git a/selfdrive/car/hyundai/tests/test_hyundai.py b/selfdrive/car/hyundai/tests/test_hyundai.py index 56543208f4..d531a2c1bd 100755 --- a/selfdrive/car/hyundai/tests/test_hyundai.py +++ b/selfdrive/car/hyundai/tests/test_hyundai.py @@ -35,13 +35,12 @@ class TestHyundaiFingerprint(unittest.TestCase): self.assertIn(fuzzy_ecu, [e[0] for e in ecus]) def test_consistent_fw_dates(self): - # Asserts firmware dates are consistent across the platform + # Some newer CAN FD platforms have date codes in a different format we don't yet parse, + # for now assert date format is consistent across each platform for car_model, ecus in FW_VERSIONS.items(): with self.subTest(car_model=car_model): for ecu, fws in ecus.items(): if ecu[0] in FW_QUERY_CONFIG.fuzzy_ecus: - # some newer CAN FD platforms have date codes in a different format we don't yet parse, - # for now assert date format is consistent across the platform # TODO: use FW_QUERY_CONFIG.fuzzy_get_platform_codes has_date = {PLATFORM_CODE_PATTERN.search(fw).groups(1) is None for fw in fws} self.assertEqual(len(has_date), 1)