1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-02 20:48:30 +00:00

test(core): fix thp test on various models of trezor

[no changelog]
This commit is contained in:
M1nd3r 2024-11-29 13:26:13 +01:00
parent a29f21b2be
commit ac03e084fb

View File

@ -57,8 +57,9 @@ if utils.USE_THP:
gen.send(None)
gen.send(cid_req)
gen.send(None)
model = bytes(utils.INTERNAL_MODEL, "big")
response_data = (
b"\x0a\x04\x54\x32\x54\x31\x10\x00\x18\x00\x20\x02\x28\x02\x28\x03\x28\x04"
b"\x0a\x04" + model + "\x10\x00\x18\x00\x20\x02\x28\x02\x28\x03\x28\x04"
)
response_without_crc = (
b"\x41\xff\xff\x00\x20"