Skip to content

Commit

Permalink
Merge pull request #31 from LedgerHQ/cev/update_snapshots
Browse files Browse the repository at this point in the history
Update Ragger tests: Stax navigation & snapshots
  • Loading branch information
cedelavergne-ledger authored Sep 20, 2024
2 parents f0db13f + 8dcff96 commit a792352
Show file tree
Hide file tree
Showing 228 changed files with 6 additions and 3 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 6 additions & 3 deletions tests/functional/test_sign_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def test_sign_transaction_newaccount_accepted(test_name, firmware, backend, navi
messages = split_message(payload, MAX_CHUNK_SIZE)
assert len(messages) == 2

if firmware.device.startswith("nano"):
if firmware.is_nano:
instructions = get_nano_review_instructions(2) + get_nano_review_instructions(7)
else:
instructions = [NavInsID.USE_CASE_REVIEW_TAP] * 5
Expand All @@ -99,10 +99,13 @@ def test_sign_transaction_newaccount_accepted(test_name, firmware, backend, navi
test_name + "/part1",
instructions)

if firmware.device.startswith("nano"):
if firmware.is_nano:
instructions = get_nano_review_instructions(6) + get_nano_review_instructions(8)
else:
instructions = [NavInsID.USE_CASE_REVIEW_TAP] * 6
if firmware == Firmware.FLEX:
instructions = [NavInsID.USE_CASE_REVIEW_TAP] * 6
else:
instructions = [NavInsID.USE_CASE_REVIEW_TAP] * 5
instructions.append(NavInsID.USE_CASE_REVIEW_CONFIRM)
instructions.append(NavInsID.USE_CASE_STATUS_DISMISS)
with client.send_async_sign_message_full(messages[1], False):
Expand Down

0 comments on commit a792352

Please sign in to comment.