Skip to content

Commit

Permalink
Merge pull request #201 from LedgerHQ/fbe/faster_tests
Browse files Browse the repository at this point in the history
Remove some redundant tests
  • Loading branch information
fbeutin-ledger authored Jun 27, 2024
2 parents 8be8d7e + 9353673 commit e6e46ab
Show file tree
Hide file tree
Showing 141 changed files with 71 additions and 220 deletions.
10 changes: 9 additions & 1 deletion test/python/apps/exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from ragger.backend.interface import BackendInterface, RAPDU

from ..utils import handle_lib_call_start_or_stop, int_to_minimally_sized_bytes, prefix_with_len_custom
from ..utils import handle_lib_call_start_or_stop, int_to_minimally_sized_bytes, prefix_with_len_custom, get_version_from_makefile
from .exchange_transaction_builder import SubCommand

MAX_CHUNK_SIZE = 255
Expand Down Expand Up @@ -167,3 +167,11 @@ def start_signing_transaction(self) -> RAPDU:
if rapdu.status == 0x9000:
handle_lib_call_start_or_stop(self._client)
return rapdu

def assert_exchange_is_started(self):
# We don't care at all for the subcommand / rate
version = self.get_version().data
major, minor, patch = get_version_from_makefile()
assert version[0] == major
assert version[1] == minor
assert version[2] == patch
148 changes: 62 additions & 86 deletions test/python/apps/exchange_test_runner.py

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Binary file added test/python/snapshots/nanos/test_ltc_sell/00003.png
Binary file added test/python/snapshots/nanos/test_ltc_sell/00005.png
Binary file added test/python/snapshots/nanos/test_ltc_swap/00002.png
Binary file added test/python/snapshots/nanos/test_ltc_swap/00004.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file added test/python/snapshots/nanosp/test_ltc_swap/00002.png
Binary file added test/python/snapshots/nanosp/test_ltc_swap/00004.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file added test/python/snapshots/nanox/test_ltc_fund/00002.png
Binary file added test/python/snapshots/nanox/test_ltc_fund/00004.png
Binary file added test/python/snapshots/nanox/test_ltc_sell/00003.png
Binary file added test/python/snapshots/nanox/test_ltc_sell/00005.png
Binary file added test/python/snapshots/nanox/test_ltc_swap/00002.png
Binary file added test/python/snapshots/nanox/test_ltc_swap/00004.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
75 changes: 0 additions & 75 deletions test/python/test_check_address_and_display.py

This file was deleted.

58 changes: 0 additions & 58 deletions test/python/test_swap_ltc_to_eth.py

This file was deleted.

0 comments on commit e6e46ab

Please sign in to comment.