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],
|
2021-03-22 14:31:55 +00:00
|
|
|
chain_setting=MainnetSetting,
|
2020-09-14 14:47:15 +00:00
|
|
|
start_index=1,
|
2021-03-25 14:06:25 +00:00
|
|
|
hex_eth1_withdrawal_address=None,
|
2020-09-14 14:47:15 +00:00
|
|
|
)
|