1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-01 20:08:26 +00:00

test(python): fix test_debuglink device test

[no changelog]
This commit is contained in:
M1nd3r 2024-11-25 14:42:27 +01:00
parent 3d2ada191b
commit 7db661f0ab

View File

@ -62,7 +62,8 @@ def test_pin(session: Session):
@pytest.mark.models("core")
def test_softlock_instability(session: Session):
raise Exception("THIS NEEDS TO BE FIXED")
if session.session_version == Session.THP_V2:
raise Exception("THIS NEEDS TO BE CHANGED FOR THP")
def load_device():
debuglink.load_device(
@ -81,12 +82,14 @@ def test_softlock_instability(session: Session):
pytest.xfail("reseed only supported on emulator")
device.wipe(session)
entropy_after_wipe = misc.get_entropy(session, 16)
session.refresh_features()
# configure and wipe the device
load_device()
session.client.debug.reseed(0)
device.wipe(session)
assert misc.get_entropy(session, 16) == entropy_after_wipe
session.refresh_features()
load_device()
# the device has PIN -> lock it