forked from IQ.Lvbs/IQ.Pilot
27 lines
1005 B
Python
27 lines
1005 B
Python
"""
|
|
Copyright © IQ.Lvbs, apart of Project Teal Lvbs, All Rights Reserved, licensed under https://konn3kt.com/tos
|
|
"""
|
|
from parameterized import parameterized
|
|
|
|
from iqdbc.car import gen_empty_fingerprint
|
|
from iqdbc.car.structs import CarParams
|
|
from iqdbc.car.car_helpers import interfaces
|
|
from iqdbc.car.honda.values import CAR
|
|
|
|
CarFw = CarParams.CarFw
|
|
|
|
|
|
class TestHondaEpsMod:
|
|
|
|
@parameterized.expand([(CAR.HONDA_CIVIC, b'39990-TBA,A030\x00\x00'), (CAR.HONDA_CIVIC, b'39990-TBA-A030\x00\x00'),
|
|
(CAR.HONDA_CLARITY, b'39990-TRW-A020\x00\x00'), (CAR.HONDA_CLARITY, b'39990,TRW,A020\x00\x00')])
|
|
def test_eps_mod_fingerprint(self, car_name, fw):
|
|
fingerprint = gen_empty_fingerprint()
|
|
car_fw = [CarFw(ecu="eps", fwVersion=fw)]
|
|
|
|
CarInterface = interfaces[car_name]
|
|
CP = CarInterface.get_params(car_name, fingerprint, car_fw, False, False, False)
|
|
_ = CarInterface.get_params_iq(CP, car_name, fingerprint, car_fw, False, False, False)
|
|
|
|
assert not CP.dashcamOnly
|