mirror of
https://gitlab.com/pulsechaincom/staking-deposit-cli.git
synced 2025-01-07 03:22:19 +00:00
Apply suggestions from code review
Co-authored-by: Carl Beekhuizen <carl@ethereum.org>
This commit is contained in:
parent
fb498650f3
commit
eb37e129c0
@ -13,7 +13,7 @@ def test_regeneration(monkeypatch) -> None:
|
||||
# Part 1: new-mnemonic
|
||||
|
||||
# monkeypatch get_mnemonic
|
||||
mock_mnemonic = "abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about"
|
||||
mock_mnemonic = "legal winner thank year wave sausage worth useful legal winner thank yellow"
|
||||
|
||||
def mock_get_mnemonic(language, words_path, entropy=None) -> str:
|
||||
return mock_mnemonic
|
||||
@ -76,6 +76,7 @@ def test_regeneration(monkeypatch) -> None:
|
||||
with open(Path(validator_keys_folder_path_2 + '/' + part_2_key_files[0])) as f:
|
||||
keystore_2_0 = json.load(f)
|
||||
assert keystore_1_1['pubkey'] == keystore_2_0['pubkey']
|
||||
assert keystore_1_1['path'] == keystore_2_0['path']
|
||||
|
||||
# Clean up
|
||||
clean_key_folder(folder_path_1)
|
||||
|
Loading…
Reference in New Issue
Block a user