fixup! feat(core): add ability to request backups with any number of groups/shares.

Ioan Bizău 3 weeks ago
parent 4f29ab3bda
commit f7378c4ee4

@ -115,7 +115,9 @@ def test_backup_slip39_advanced(client: Client, click_info: bool):
@pytest.mark.skip_t1b1
@pytest.mark.setup_client(needs_backup=True, mnemonic=MNEMONIC_SLIP39_ADVANCED_20)
@pytest.mark.parametrize(
"share_threshold,share_count", [(1, 1), (2, 2), (3, 5)], ids=["1_of_1", "2_of_2", "3_of_5"]
"share_threshold,share_count",
[(1, 1), (2, 2), (3, 5)],
ids=["1_of_1", "2_of_2", "3_of_5"],
)
def test_backup_slip39_custom(client: Client, share_threshold, share_count):
assert client.features.needs_backup is True
@ -123,7 +125,9 @@ def test_backup_slip39_custom(client: Client, share_threshold, share_count):
with client:
IF = InputFlowSlip39CustomBackup(client, share_count)
client.set_input_flow(IF.get())
device.backup(client, group_threshold=1, groups=[(share_threshold, share_count)])
device.backup(
client, group_threshold=1, groups=[(share_threshold, share_count)]
)
client.init_device()
assert client.features.initialized is True

@ -5102,8 +5102,9 @@
"T3T1_en_test_msg_backup_device.py::test_backup_slip39_advanced[no_click_info]": "ca4836dd39f2398401fe2001a6cb7bf389f83fcd8e7770a65ca79b6840fe176a",
"T3T1_en_test_msg_backup_device.py::test_backup_slip39_basic[click_info]": "01af0780579b900211698fdaa68a34f4339fa516f152dfd013e210f96b02f5e1",
"T3T1_en_test_msg_backup_device.py::test_backup_slip39_basic[no_click_info]": "efd5fa4a4a87e6ac6e6b6b2c819d3d40711e7aff0340d1bab27794c333caa8d0",
"T3T1_en_test_msg_backup_device.py::test_backup_slip39_single[click_info]": "26bab23e807c8109c4a23306eaa9009937a15835709a1ff6218fabb4a9332295",
"T3T1_en_test_msg_backup_device.py::test_backup_slip39_single[no_click_info]": "26bab23e807c8109c4a23306eaa9009937a15835709a1ff6218fabb4a9332295",
"T3T1_en_test_msg_backup_device.py::test_backup_slip39_custom[2_of_2]": "5ec89e8e2fc8336b7d984817c48734bf172bb1abdef37e215f3061323142779b",
"T3T1_en_test_msg_backup_device.py::test_backup_slip39_custom[1_of_1]": "26bab23e807c8109c4a23306eaa9009937a15835709a1ff6218fabb4a9332295",
"T3T1_en_test_msg_backup_device.py::test_backup_slip39_custom[3_of_5]": "d3683a4deff3fd7e3d4bddf763290a3f54551628134ae10c9f23772a7a8d8413",
"T3T1_en_test_msg_backup_device.py::test_interrupt_backup_fails": "ae147498028d68aa71c7337544e4a5049c4c943897f905c6fe29e88e5c3ab056",
"T3T1_en_test_msg_backup_device.py::test_no_backup_fails": "fada9d38ec099b3c6a4fd8bf994bb1f3431e40085128b4e0cd9deb8344dec53e",
"T3T1_en_test_msg_backup_device.py::test_no_backup_show_entropy_fails": "c47cfc38ee8a29b79808336a6f99b037f4a760b907bb9c680a554f92a194d262",
@ -19603,8 +19604,9 @@
"TT_en_test_msg_backup_device.py::test_backup_slip39_advanced[no_click_info]": "503c667f02e099102be7c9bf14e771b5e27f41eabebdf7269389c9d9b33016ae",
"TT_en_test_msg_backup_device.py::test_backup_slip39_basic[click_info]": "65b98eb420a3b4a5128dc686f491a55b460205db7e1e1bb2828a3d6998af5466",
"TT_en_test_msg_backup_device.py::test_backup_slip39_basic[no_click_info]": "a3c26090183f9b150cd0caccfa2a4ba9833de718868777cc1e6f255ddda8a94f",
"TT_en_test_msg_backup_device.py::test_backup_slip39_single[click_info]": "8ab2a9575d326c5578aa2b4ceca01e85d7e4c2b2454bdaef2378c5ac4d171df0",
"TT_en_test_msg_backup_device.py::test_backup_slip39_single[no_click_info]": "8ab2a9575d326c5578aa2b4ceca01e85d7e4c2b2454bdaef2378c5ac4d171df0",
"TT_en_test_msg_backup_device.py::test_backup_slip39_custom[2_of_2]": "07c21a74ed24cb30259df4914998c965fc4152a6b99846141c88f91716be90b2",
"TT_en_test_msg_backup_device.py::test_backup_slip39_custom[1_of_2]": "8ab2a9575d326c5578aa2b4ceca01e85d7e4c2b2454bdaef2378c5ac4d171df0",
"TT_en_test_msg_backup_device.py::test_backup_slip39_custom[3_of_5]": "3f118cb683e5e43229a36a698d0aeb6bb4abce3592f929b95d67609275b71242",
"TT_en_test_msg_backup_device.py::test_interrupt_backup_fails": "ae147498028d68aa71c7337544e4a5049c4c943897f905c6fe29e88e5c3ab056",
"TT_en_test_msg_backup_device.py::test_no_backup_fails": "fada9d38ec099b3c6a4fd8bf994bb1f3431e40085128b4e0cd9deb8344dec53e",
"TT_en_test_msg_backup_device.py::test_no_backup_show_entropy_fails": "001377ce61dcd189e6a9d17e20dcd71130e951dc3314b40ff26f816bd9355bdd",

Loading…
Cancel
Save