Apply suggestions from code review

Co-authored-by: Carl Beekhuizen <carl@ethereum.org>
This commit is contained in:
Hsiao-Wei Wang 2020-11-04 03:39:55 +08:00 committed by GitHub
parent fb498650f3
commit eb37e129c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)