Skip to content

Commit

Permalink
Merge pull request #23 from trilitech/palmer@functori@test-using-seve…
Browse files Browse the repository at this point in the history
…ral-keys-with-different-curves

Test: use several keys with different curves in tests
  • Loading branch information
ajinkyaraj-23 authored Feb 5, 2024
2 parents a0afa95 + d294655 commit 4b04f50
Show file tree
Hide file tree
Showing 991 changed files with 294 additions and 229 deletions.
38 changes: 37 additions & 1 deletion test/python/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,46 @@

DEFAULT_SEED = " ".join(['zebra'] * 24)

DEFAULT_ACCOUNT = Account(
TZ1_ACCOUNT = Account(
"m/44'/1729'/0'/0'",
SigScheme.ED25519,
"edsk2tUyhVvGj9B1S956ZzmaU4bC9J7t8xVBH52fkAoZL25MHEwacd"
)

TZ2_ACCOUNT = Account(
"m/44'/1729'/0'/0'",
SigScheme.SECP256K1,
"spsk2Pfx9chqXVbz2tW7ze4gGU4RfaiK3nSva77bp69zHhFho2zTze"
)

TZ3_ACCOUNT = Account(
"m/44'/1729'/0'/0'",
SigScheme.SECP256R1,
"p2sk2zPCmKo6zTSjPbDHnLiHtPAqVRFrExN3oTvKGbu3C99Jyeyura"
)

BIP32_TZ1_ACCOUNT = Account(
"m/44'/1729'/0'/0'",
SigScheme.BIP32_ED25519,
"edpkumJgSsSxkpiB5hmTq6eZcrmc6BsJtLAhYceFTiziFqje4mongz"
)

LONG_TZ1_ACCOUNT = Account(
"m/9'/12'/13'/8'/78'",
SigScheme.ED25519,
"edsk3eZBgFAf1VtdibfxoCcihxXje9S3th7jdEgVA2kHG82EKYNKNm"
)

DEFAULT_ACCOUNT = TZ1_ACCOUNT

DEFAULT_ACCOUNT_2 = TZ2_ACCOUNT

ACCOUNTS = [
TZ1_ACCOUNT,
TZ2_ACCOUNT,
TZ3_ACCOUNT,
BIP32_TZ1_ACCOUNT,
LONG_TZ1_ACCOUNT,
]

EMPTY_PATH = BipPath.from_string("m")
16 changes: 9 additions & 7 deletions test/python/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,17 @@
pytest_plugins = ("ragger.conftest.base_conftest", )

@pytest.fixture(scope="function")
def client(backend: BackendInterface):
def client(backend: BackendInterface) -> TezosClient:
"""Get a tezos client."""
return TezosClient(backend)

@pytest.fixture(scope="function")
def tezos_navigator(backend: BackendInterface,
client: TezosClient,
firmware: Firmware,
navigator: Navigator,
golden_run: bool):
def tezos_navigator(
backend: BackendInterface,
firmware: Firmware,
client: TezosClient,
navigator: Navigator,
golden_run: bool,
test_name: str) -> TezosNavigator:
"""Get a tezos navigator."""
return TezosNavigator(backend, firmware, client, navigator, golden_run)
return TezosNavigator(backend, firmware, client, navigator, golden_run, test_name)
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

0 comments on commit 4b04f50

Please sign in to comment.