diff --git a/ragger-tests/snapshots/nanosp/test_get_public_key_confirm_refused/00000.png b/ragger-tests/snapshots/nanosp/test_get_public_key_confirm_refused/00000.png deleted file mode 100644 index 6d71548..0000000 Binary files a/ragger-tests/snapshots/nanosp/test_get_public_key_confirm_refused/00000.png and /dev/null differ diff --git a/ragger-tests/snapshots/nanosp/test_get_public_key_confirm_refused/00001.png b/ragger-tests/snapshots/nanosp/test_get_public_key_confirm_refused/00001.png deleted file mode 100644 index 216e1ee..0000000 Binary files a/ragger-tests/snapshots/nanosp/test_get_public_key_confirm_refused/00001.png and /dev/null differ diff --git a/ragger-tests/snapshots/nanosp/test_get_public_key_confirm_refused/00002.png b/ragger-tests/snapshots/nanosp/test_get_public_key_confirm_refused/00002.png deleted file mode 100644 index bbe7b2d..0000000 Binary files a/ragger-tests/snapshots/nanosp/test_get_public_key_confirm_refused/00002.png and /dev/null differ diff --git a/ragger-tests/snapshots/nanosp/test_get_public_key_confirm_refused/00003.png b/ragger-tests/snapshots/nanosp/test_get_public_key_confirm_refused/00003.png deleted file mode 100644 index 2eec8fc..0000000 Binary files a/ragger-tests/snapshots/nanosp/test_get_public_key_confirm_refused/00003.png and /dev/null differ diff --git a/ragger-tests/snapshots/nanosp/test_get_public_key_confirm_refused/00004.png b/ragger-tests/snapshots/nanosp/test_get_public_key_confirm_refused/00004.png deleted file mode 100644 index 061e184..0000000 Binary files a/ragger-tests/snapshots/nanosp/test_get_public_key_confirm_refused/00004.png and /dev/null differ diff --git a/ragger-tests/snapshots/nanox/test_get_public_key_confirm_refused/00000.png b/ragger-tests/snapshots/nanox/test_get_public_key_confirm_refused/00000.png deleted file mode 100644 index 6d71548..0000000 Binary files a/ragger-tests/snapshots/nanox/test_get_public_key_confirm_refused/00000.png and /dev/null differ diff --git a/ragger-tests/snapshots/nanox/test_get_public_key_confirm_refused/00001.png b/ragger-tests/snapshots/nanox/test_get_public_key_confirm_refused/00001.png deleted file mode 100644 index 216e1ee..0000000 Binary files a/ragger-tests/snapshots/nanox/test_get_public_key_confirm_refused/00001.png and /dev/null differ diff --git a/ragger-tests/snapshots/nanox/test_get_public_key_confirm_refused/00002.png b/ragger-tests/snapshots/nanox/test_get_public_key_confirm_refused/00002.png deleted file mode 100644 index bbe7b2d..0000000 Binary files a/ragger-tests/snapshots/nanox/test_get_public_key_confirm_refused/00002.png and /dev/null differ diff --git a/ragger-tests/snapshots/nanox/test_get_public_key_confirm_refused/00003.png b/ragger-tests/snapshots/nanox/test_get_public_key_confirm_refused/00003.png deleted file mode 100644 index 2eec8fc..0000000 Binary files a/ragger-tests/snapshots/nanox/test_get_public_key_confirm_refused/00003.png and /dev/null differ diff --git a/ragger-tests/snapshots/nanox/test_get_public_key_confirm_refused/00004.png b/ragger-tests/snapshots/nanox/test_get_public_key_confirm_refused/00004.png deleted file mode 100644 index 061e184..0000000 Binary files a/ragger-tests/snapshots/nanox/test_get_public_key_confirm_refused/00004.png and /dev/null differ diff --git a/ragger-tests/test_pubkey_cmd.py b/ragger-tests/test_pubkey_cmd.py index d0b6ce1..fd9b2db 100644 --- a/ragger-tests/test_pubkey_cmd.py +++ b/ragger-tests/test_pubkey_cmd.py @@ -33,17 +33,3 @@ def check_result(result): assert public_key.hex() == "19e2fea57e82293b4fee8120d934f0c5a4907198f8df29e9a153cfd7d9383488" run_apdu_and_nav_tasks_concurrently(apdu_task, nav_task, check_result) - -# # In this test we check that the GET_PUBLIC_KEY in confirmation mode replies an error if the user refuses -# def test_get_public_key_confirm_refused(backend, scenario_navigator): -# client = Client(backend) -# path = "m/44'/535348'/0'" - -# with pytest.raises(ExceptionRAPDU) as e: -# with client.get_public_key_with_confirmation(path=path): -# scenario_navigator.address_review_reject() - -# # Assert that we have received a refusal -# assert e.value.status == Errors.SW_DENY -# assert len(e.value.data) == 0 - diff --git a/ragger-tests/test_version_cmd.py b/ragger-tests/test_version_cmd.py index 74c8d3b..3b3c4df 100644 --- a/ragger-tests/test_version_cmd.py +++ b/ragger-tests/test_version_cmd.py @@ -13,7 +13,7 @@ def test_version(backend): raise FileNotFoundError("Cargo.toml not found") with open(cargo_path, "rb") as f: - return tomli.load(f) + data = tomli.load(f) version = (tuple(map(int, data['package']['version'].split('.'))), "alamgu example") # Use the app interface instead of raw interface