mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 07:28:10 +00:00
feat(tests): show QR codes in GetAddress test
This commit is contained in:
parent
47e2193e3b
commit
c3b28d8fb4
@ -41,16 +41,24 @@ VECTORS = ( # path, script_type, address
|
||||
|
||||
@pytest.mark.parametrize("path, script_type, address", VECTORS)
|
||||
def test_show(client: Client, path, script_type, address):
|
||||
assert (
|
||||
btc.get_address(
|
||||
client,
|
||||
"Bitcoin",
|
||||
tools.parse_path(path),
|
||||
script_type=script_type,
|
||||
show_display=True,
|
||||
def input_flow():
|
||||
yield
|
||||
client.debug.press_no()
|
||||
yield
|
||||
client.debug.press_yes()
|
||||
|
||||
with client:
|
||||
client.set_input_flow(input_flow)
|
||||
assert (
|
||||
btc.get_address(
|
||||
client,
|
||||
"Bitcoin",
|
||||
tools.parse_path(path),
|
||||
script_type=script_type,
|
||||
show_display=True,
|
||||
)
|
||||
== address
|
||||
)
|
||||
== address
|
||||
)
|
||||
|
||||
|
||||
def test_show_unrecognized_path(client: Client):
|
||||
|
@ -92,9 +92,9 @@
|
||||
"T1_bitcoin-test_getaddress_segwit_native.py::test_show_segwit[Testnet-m-86h-1h-0h-0-0-InputScr-821a199d": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"T1_bitcoin-test_getaddress_segwit_native.py::test_show_segwit[Testnet-m-86h-1h-0h-1-0-InputScr-9d2fa8bc": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"T1_bitcoin-test_getaddress_segwit_native.py::test_show_segwit[Testnet-m-86h-1h-0h-1-0-InputScr-d5b7f8fc": "15c2003dc3816e73bc0673cc917301ca5b91f25cc3e2290c8d2add52e931399f",
|
||||
"T1_bitcoin-test_getaddress_show.py::test_show[m-44h-0h-12h-0-0-InputScriptType.SPENDADDRESS-1F-1e4f2f74": "432e7c5cd43fb5b090b30e7342887a9e3d3a2e49c1da2f864ce6f63acff2852a",
|
||||
"T1_bitcoin-test_getaddress_show.py::test_show[m-49h-0h-12h-0-0-InputScriptType.SPENDP2SHWITNES-a986211d": "473837370292b6dc22909ea5d90a0241b0a6d8265c716832adeeaf1ac8952318",
|
||||
"T1_bitcoin-test_getaddress_show.py::test_show[m-84h-0h-12h-0-0-InputScriptType.SPENDWITNESS-bc-a5f08dfb": "bf3ce75314aff296120656f92f4c316d3d794410ba2612b79643cb89112f354f",
|
||||
"T1_bitcoin-test_getaddress_show.py::test_show[m-44h-0h-12h-0-0-InputScriptType.SPENDADDRESS-1F-1e4f2f74": "9e7c7d751f82daaab09cdc499a41988d8519ffbc1efb6ef23a58e48fc4960787",
|
||||
"T1_bitcoin-test_getaddress_show.py::test_show[m-49h-0h-12h-0-0-InputScriptType.SPENDP2SHWITNES-a986211d": "49058bad1db26efc3c7cdafcee64b0b0975ea7eab8de41994217d901c7e4f44c",
|
||||
"T1_bitcoin-test_getaddress_show.py::test_show[m-84h-0h-12h-0-0-InputScriptType.SPENDWITNESS-bc-a5f08dfb": "55b82c37526774587cc4885b0322610345311397e0c51051d6232e561ad81099",
|
||||
"T1_bitcoin-test_getaddress_show.py::test_show_multisig_15": "40f652d0e899d528605f472f47ec6cb727ced8fe90588a8904b46ed39c2088e8",
|
||||
"T1_bitcoin-test_getaddress_show.py::test_show_multisig_3": "05e4e5cd014bf96373788e4563a48f5cdb4c54d358a88e8a29247c2825c5669e",
|
||||
"T1_bitcoin-test_getaddress_show.py::test_show_unrecognized_path": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
|
Loading…
Reference in New Issue
Block a user