staking-deposit-cli/tests/test_credentials.py

18 lines
470 B
Python
Raw Normal View History

2020-09-14 14:47:15 +00:00
import pytest
2021-08-23 10:33:04 +00:00
from staking_deposit.credentials import CredentialList
from staking_deposit.settings import MainnetSetting
2020-09-14 14:47:15 +00:00
2020-10-14 15:29:09 +00:00
def test_from_mnemonic() -> None:
2020-09-14 14:47:15 +00:00
with pytest.raises(ValueError):
CredentialList.from_mnemonic(
mnemonic="",
2020-10-14 15:29:09 +00:00
mnemonic_password="",
2020-09-14 14:47:15 +00:00
num_keys=1,
amounts=[32, 32],
chain_setting=MainnetSetting,
2020-09-14 14:47:15 +00:00
start_index=1,
hex_eth1_withdrawal_address=None,
2020-09-14 14:47:15 +00:00
)