mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-12 17:38:13 +00:00
chore(core): turn labeling click test into device test
This commit is contained in:
parent
0bc729a3da
commit
f1a8847e10
@ -19,15 +19,24 @@ import pytest
|
||||
from trezorlib import misc
|
||||
from trezorlib.debuglink import TrezorClientDebugLink as Client
|
||||
|
||||
from ... import translations as TR
|
||||
from ...common import MNEMONIC12
|
||||
|
||||
|
||||
@pytest.mark.setup_client(mnemonic=MNEMONIC12)
|
||||
@pytest.mark.models("core")
|
||||
def test_encrypt(client: Client):
|
||||
misc.encrypt_keyvalue(
|
||||
client,
|
||||
[],
|
||||
"Enable labeling?",
|
||||
b"",
|
||||
)
|
||||
def input_flow():
|
||||
assert (yield).name == "cipher_key_value"
|
||||
assert client.debug.read_layout().text_content() == TR.misc__enable_labeling
|
||||
client.debug.swipe_up()
|
||||
client.debug.press_yes()
|
||||
|
||||
with client:
|
||||
client.set_input_flow(input_flow())
|
||||
misc.encrypt_keyvalue(
|
||||
client,
|
||||
[],
|
||||
"Enable labeling?",
|
||||
b"",
|
||||
)
|
||||
|
@ -10991,7 +10991,7 @@
|
||||
"T3B1_cs_misc-test_msg_cipherkeyvalue.py::test_decrypt_badlen": "92840d4624bb07440bb1ab5cb4b57251c9950388accbc8334a9a7d609ededb01",
|
||||
"T3B1_cs_misc-test_msg_cipherkeyvalue.py::test_encrypt": "dc5befa5c465a6a85394921d6593f4c0bd1b0c781b05b726c4de0b2d82cf0d89",
|
||||
"T3B1_cs_misc-test_msg_cipherkeyvalue.py::test_encrypt_badlen": "92840d4624bb07440bb1ab5cb4b57251c9950388accbc8334a9a7d609ededb01",
|
||||
"T3B1_cs_misc-test_msg_enablelabeling.py::test_encrypt": "8126c1364b4fe3f43c752cd60b9dd0a866ae67d4db672efc29e26d7963aa08d3",
|
||||
"T3B1_cs_misc-test_msg_enablelabeling.py::test_encrypt": "bfa742e9b297322338819eef0c797b2efdfdfbdfbdcb03497d5d797ddce15c25",
|
||||
"T3B1_cs_misc-test_msg_getecdhsessionkey.py::test_ecdh": "47f63ebb6013378c1f004b452444aab482891f2be45742b22484bd58305af010",
|
||||
"T3B1_cs_misc-test_msg_getentropy.py::test_entropy[128]": "755144ba31bea3230796491b91205d770707810be22b069376d5fd75f07989ac",
|
||||
"T3B1_cs_misc-test_msg_getentropy.py::test_entropy[129]": "755144ba31bea3230796491b91205d770707810be22b069376d5fd75f07989ac",
|
||||
@ -12356,7 +12356,7 @@
|
||||
"T3B1_de_misc-test_msg_cipherkeyvalue.py::test_decrypt_badlen": "c92ee4e050daadcfc7cc95657b00deed76bb463d486eefcc66455bdbe60faa33",
|
||||
"T3B1_de_misc-test_msg_cipherkeyvalue.py::test_encrypt": "c394c4a88e7f120b82d341ca1a77aae5d5a404cfb1e04fc5a552ff2abc37cc0e",
|
||||
"T3B1_de_misc-test_msg_cipherkeyvalue.py::test_encrypt_badlen": "c92ee4e050daadcfc7cc95657b00deed76bb463d486eefcc66455bdbe60faa33",
|
||||
"T3B1_de_misc-test_msg_enablelabeling.py::test_encrypt": "1261cb237ffaf462c71b849833d70645bcd7983483cdee16325f41a2acfe76a6",
|
||||
"T3B1_de_misc-test_msg_enablelabeling.py::test_encrypt": "5aa0cf597aa7527504697e17277719445a7f80e36722e4c9f8faaeb59ee63c46",
|
||||
"T3B1_de_misc-test_msg_getecdhsessionkey.py::test_ecdh": "ae4f755dcfa288f0dd74492f4fde1f6ee8996dfa92559944e3cb81701cde735c",
|
||||
"T3B1_de_misc-test_msg_getentropy.py::test_entropy[128]": "9f8671705cc2c47582ae67f76c111a4bffec5c35849733595134a18aadd1804e",
|
||||
"T3B1_de_misc-test_msg_getentropy.py::test_entropy[129]": "9f8671705cc2c47582ae67f76c111a4bffec5c35849733595134a18aadd1804e",
|
||||
@ -13721,7 +13721,7 @@
|
||||
"T3B1_en_misc-test_msg_cipherkeyvalue.py::test_decrypt_badlen": "1477d62e338f4d7c1bfac2fc5d2fc231218da5768666c11482dc1f83229506f3",
|
||||
"T3B1_en_misc-test_msg_cipherkeyvalue.py::test_encrypt": "e2a9a7e518de0ef49f5bcbaa87f8558483fc5ca5527141b629b3fbc6ab33faa7",
|
||||
"T3B1_en_misc-test_msg_cipherkeyvalue.py::test_encrypt_badlen": "1477d62e338f4d7c1bfac2fc5d2fc231218da5768666c11482dc1f83229506f3",
|
||||
"T3B1_en_misc-test_msg_enablelabeling.py::test_encrypt": "90692e868c6372860dec3a14e76838cfde06ebe697443f1537f64b5f6d15b7f9",
|
||||
"T3B1_en_misc-test_msg_enablelabeling.py::test_encrypt": "7f6ef9adefb76e3a5236ffa3ea38172f57ba2af4f905bb8ea00f6d4d19b3c07e",
|
||||
"T3B1_en_misc-test_msg_getecdhsessionkey.py::test_ecdh": "9e2488665df0124c4d9ed2a4c91f7e6e7a0ffc28da1493fceb71367cb3574404",
|
||||
"T3B1_en_misc-test_msg_getentropy.py::test_entropy[128]": "5c5cf562f789ae5fad9e3dd028878dcb91273d46281f06a910e0c875eb520d4c",
|
||||
"T3B1_en_misc-test_msg_getentropy.py::test_entropy[129]": "5c5cf562f789ae5fad9e3dd028878dcb91273d46281f06a910e0c875eb520d4c",
|
||||
@ -15086,7 +15086,7 @@
|
||||
"T3B1_es_misc-test_msg_cipherkeyvalue.py::test_decrypt_badlen": "211e7c3419bd48ceefc570971fc522f809b39614563be948fd1e545366506dee",
|
||||
"T3B1_es_misc-test_msg_cipherkeyvalue.py::test_encrypt": "3a18ea8ebe3d16f2bedee0256f3d69bb9b1ee37eb2d0aa8b9863445a36c979cc",
|
||||
"T3B1_es_misc-test_msg_cipherkeyvalue.py::test_encrypt_badlen": "211e7c3419bd48ceefc570971fc522f809b39614563be948fd1e545366506dee",
|
||||
"T3B1_es_misc-test_msg_enablelabeling.py::test_encrypt": "66dd0a4676af50d450fc567b6020fdebdeb70955bade1742a1bc8018522db7dc",
|
||||
"T3B1_es_misc-test_msg_enablelabeling.py::test_encrypt": "91219521d0dc8636d9bb94817e9ce88fc0211e5e4ae35688f96283dd5d0b838f",
|
||||
"T3B1_es_misc-test_msg_getecdhsessionkey.py::test_ecdh": "ce83e8b5687d765319ef8b5b34c9216ebc516f5f6c9944fc8b79639cb6656ee1",
|
||||
"T3B1_es_misc-test_msg_getentropy.py::test_entropy[128]": "e692ba3e9f449dde4e9eec614342e4fdf7548953e45959dfd90d83836c5bdf21",
|
||||
"T3B1_es_misc-test_msg_getentropy.py::test_entropy[129]": "e692ba3e9f449dde4e9eec614342e4fdf7548953e45959dfd90d83836c5bdf21",
|
||||
@ -16451,7 +16451,7 @@
|
||||
"T3B1_fr_misc-test_msg_cipherkeyvalue.py::test_decrypt_badlen": "35c9c9529c59ca5c386ac05856f7452f26cde732203b5b61ec9321230b52df89",
|
||||
"T3B1_fr_misc-test_msg_cipherkeyvalue.py::test_encrypt": "462fcadee1fde310aaf160f26258ea2d46801d4baae3d2f6801f986c73e80e9c",
|
||||
"T3B1_fr_misc-test_msg_cipherkeyvalue.py::test_encrypt_badlen": "35c9c9529c59ca5c386ac05856f7452f26cde732203b5b61ec9321230b52df89",
|
||||
"T3B1_fr_misc-test_msg_enablelabeling.py::test_encrypt": "699296ec759c63f3068b9acd1ea713e518595e02b2324f52b8d2e7fd2c550819",
|
||||
"T3B1_fr_misc-test_msg_enablelabeling.py::test_encrypt": "3e81fde0a1d761dd701498c8972634c6b8977177c06b8086e211f3e92ec64868",
|
||||
"T3B1_fr_misc-test_msg_getecdhsessionkey.py::test_ecdh": "023472995e3f438446815e3d60b45764057c6891d9bb3047724e40ddaf13877e",
|
||||
"T3B1_fr_misc-test_msg_getentropy.py::test_entropy[128]": "1b02691176d74e16c048f174d3e71a9bc24a0ced4b4b08d02ac1f86000f789c7",
|
||||
"T3B1_fr_misc-test_msg_getentropy.py::test_entropy[129]": "1b02691176d74e16c048f174d3e71a9bc24a0ced4b4b08d02ac1f86000f789c7",
|
||||
@ -17816,7 +17816,7 @@
|
||||
"T3B1_pt_misc-test_msg_cipherkeyvalue.py::test_decrypt_badlen": "6ba5ca7223cd8ad675e081407f186acdfc8420304eea96de0fde5eda45ef0a57",
|
||||
"T3B1_pt_misc-test_msg_cipherkeyvalue.py::test_encrypt": "e0a6279908c206fa15cb5cdca7305540cf14001940092e051295ce088623e44f",
|
||||
"T3B1_pt_misc-test_msg_cipherkeyvalue.py::test_encrypt_badlen": "6ba5ca7223cd8ad675e081407f186acdfc8420304eea96de0fde5eda45ef0a57",
|
||||
"T3B1_pt_misc-test_msg_enablelabeling.py::test_encrypt": "85e116a5a3bdcac6f5f9e5f86135be364dce71649cc2be2a42eb8b5b998f648b",
|
||||
"T3B1_pt_misc-test_msg_enablelabeling.py::test_encrypt": "866388e4acb3064e29ba6525dda46023cc656575c8d7f056af2bef1b56aefa1c",
|
||||
"T3B1_pt_misc-test_msg_getecdhsessionkey.py::test_ecdh": "9fbd97c6b6812c552cf4aa35b4859e1842a5c83de92f3a79dda181c10821c1b8",
|
||||
"T3B1_pt_misc-test_msg_getentropy.py::test_entropy[128]": "3611d94998d9d15b67baae7a134fa92f892f466e04318b5179fbaff9bf17d1cd",
|
||||
"T3B1_pt_misc-test_msg_getentropy.py::test_entropy[129]": "3611d94998d9d15b67baae7a134fa92f892f466e04318b5179fbaff9bf17d1cd",
|
||||
|
Loading…
Reference in New Issue
Block a user