From 65f25e3c6efb150658db9b2306028a12bed095db Mon Sep 17 00:00:00 2001 From: M1nd3r Date: Wed, 29 Jan 2025 21:49:00 +0100 Subject: [PATCH] fixup! tests(python): improve thp device tests [no changelog] --- tests/device_tests/thp/test_thp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/device_tests/thp/test_thp.py b/tests/device_tests/thp/test_thp.py index 7953d6107e1..3a41c0c55e5 100644 --- a/tests/device_tests/thp/test_thp.py +++ b/tests/device_tests/thp/test_thp.py @@ -167,7 +167,7 @@ def test_pairing_qr_code(client: Client) -> None: secret_msg = _read_message(ThpQrCodeSecret) - # Check that code was derived from revealted secret + # Check that the `code` was derived from the revealed secret sha_ctx = hashlib.sha256(ThpPairingMethod.QrCode.to_bytes(1, "big")) sha_ctx.update(protocol.handshake_hash) sha_ctx.update(secret_msg.secret) @@ -237,7 +237,7 @@ def test_pairing_code_entry(client: Client) -> None: secret_msg = _read_message(ThpCodeEntrySecret) - # Check commitment and code + # Check `commitment` and `code` sha_ctx = hashlib.sha256(secret_msg.secret) computed_commitment = sha_ctx.digest() assert commitment == computed_commitment