From 82fabe75d4e83d0bec3efe310261112750033315 Mon Sep 17 00:00:00 2001 From: scgbckbone Date: Thu, 30 Oct 2025 01:18:35 +0100 Subject: [PATCH] test fixes --- testing/test_backup.py | 5 ++++- testing/test_ephemeral.py | 4 ++-- testing/test_hobble.py | 6 +++++- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/testing/test_backup.py b/testing/test_backup.py index b1d4594d..40eb3cb5 100644 --- a/testing/test_backup.py +++ b/testing/test_backup.py @@ -817,7 +817,10 @@ def test_exit_dev_backup(tmp, unit_test, goto_home, pick_menu_item, need_keypres ('W'*31) + ".7z", ]) def test_backup_long_name_display(fname, goto_home, pick_menu_item, need_keypress, src_root_dir, - microsd_path, press_cancel, cap_screen): + microsd_path, press_cancel, cap_screen, is_q1): + if not is_q1: + raise pytest.skip("Only Q") + fn = microsd_path(fname) shutil.copy(f'{src_root_dir}/docs/backup.7z', fn) diff --git a/testing/test_ephemeral.py b/testing/test_ephemeral.py index ebb5b358..2c5eb097 100644 --- a/testing/test_ephemeral.py +++ b/testing/test_ephemeral.py @@ -1387,8 +1387,8 @@ def test_temporary_from_backup(multisig, backup_system, import_ms_wallet, get_se word_menu_entry(bk_pw, has_checksum=False) - title, story = cap_story() time.sleep(.5) + title, story = cap_story() assert f"[{xfp_str}]" == title assert "Above is the master fingerprint of the seed stored in the backup." in story assert f"load backup as temporary seed" in story @@ -1471,8 +1471,8 @@ def test_temporary_from_backup_usb(backup_system, set_seed_words, cap_story, ver elif password: enter_complex(bkpw, apply=False, b39pass=False) - title, story = cap_story() time.sleep(.5) + title, story = cap_story() assert f"[{xfp_str}]" == title assert "Above is the master fingerprint of the seed stored in the backup." in story assert f"load backup as temporary seed" in story diff --git a/testing/test_hobble.py b/testing/test_hobble.py index 9120b768..93e7b55e 100644 --- a/testing/test_hobble.py +++ b/testing/test_hobble.py @@ -100,7 +100,8 @@ def test_menu_contents(set_hobble, pick_menu_item, cap_menu, en_okeys, en_notes, 'Export Wallet', 'View Identity', 'Paper Wallets', - 'Destroy Seed' } + 'Destroy Seed', + f'Show {"Firmware" if is_q1 else "FW"} Version' } if is_q1 and en_multisig: adv_expect.add('Teleport Multisig PSBT') @@ -327,6 +328,9 @@ def test_h_tempseeds(mode, set_hobble, pick_menu_item, cap_menu, settings_set, i word_menu_entry(pw, has_checksum=False) + time.sleep(.1) + press_select() # confirm loading of the backup + time.sleep(.1) title, story = cap_story() assert title == 'FAILED' assert 'successfully tested recovery' in story