Skip to content

Commit

Permalink
test: adjsut test
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Jun 13, 2023
1 parent 636c97a commit 27094e6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_choices.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ class TestAddressPromptChoice:
def test_get_user_selected_account(self, mocker, mock_ethereum_app):
mock_prompt = mocker.patch("ape_ledger.choices.click.prompt")
choices = AddressPromptChoice(mock_ethereum_app)
choices._choice_index = 1
choices._choice_index = 3
choices._index_offset = 2

# `None` means the user hasn't selected yeet
# And is entering other keys, possible the paging keys.
Expand All @@ -19,4 +20,4 @@ def _side_effect(*args, **kwargs):
mock_prompt.side_effect = _side_effect
address, hdpath = choices.get_user_selected_account()
assert address == TEST_ADDRESS
assert str(hdpath) == "m/44'/60'/1'/0/0"
assert str(hdpath) == f"m/44'/60'/{choices._choice_index + choices._index_offset}'/0/0"

0 comments on commit 27094e6

Please sign in to comment.