test fixes

This commit is contained in:
scgbckbone 2024-09-11 09:44:46 +02:00 committed by doc-hex
parent 2d004bccd5
commit 3ec3095e20
2 changed files with 1 additions and 4 deletions

View File

@ -256,7 +256,7 @@ def test_xor_split(num_words, qty, trng, goto_home, pick_menu_item, cap_story, n
assert all((f'Part {chr(n+65)}:' in body) for n in range(qty))
if is_q1:
*prts, _, chk_prt, _ = body.split("\n\n")
_, *prts, _, chk_prt, _ = body.split("\n\n")
parts = [seed_story_to_words(prt) for prt in prts]
assert len(parts) == qty
assert all(len(prt) == num_words for prt in parts)

View File

@ -2298,9 +2298,6 @@ def test_psbt_v2_global_quantities(way, fake_txn, start_sign, end_sign, cap_stor
outstyles=["p2pkh", "p2wpkh"], psbt_v2=True,
psbt_hacker=lambda psbt: hacker(psbt, way))
with open(f"/home/scg/PycharmProjects/afirmware/unix/work/MicroSD/{way}.psbt", "wb") as f:
f.write(psbt)
start_sign(psbt)
title, story = cap_story()
assert "failed" in story or "Invalid PSBT" in story or "Network fee bigger" in story