test fixes
This commit is contained in:
parent
2d004bccd5
commit
3ec3095e20
@ -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)
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user