Skip to content

Commit 39b3da7

Browse files
committed
test: multiple fixes in wallet_mnemonics to fix review comments
1 parent f9d26e5 commit 39b3da7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/functional/wallet_mnemonicbits.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ def get_mnemonic(self, node):
2525
descriptors = node.listdescriptors(True)['descriptors']
2626
for desc in descriptors:
2727
if desc['desc'][:4] == 'pkh(':
28-
pass
2928
if mnemonic is None:
3029
mnemonic = desc['mnemonic']
3130
else:
@@ -67,10 +66,10 @@ def run_test(self):
6766
assert desc['mnemonic'] == mnemonic_pre
6867
assert desc['active']
6968
# there should 3 descriptors in total
70-
# one of them is inactive imported private key for coinbase. It has no mnemonic without mnemonic
71-
# two other should be active and have mnemonic
72-
assert_equal(mnemonic_count, 2)
69+
# One of them is inactive imported private key for coinbase. It has no mnemonic
70+
# Two other should be active and have mnemonic
7371
assert_equal(mnemonic_count, 2)
72+
assert_equal(cb_count, 1)
7473
assert_equal(len(descriptors), 3)
7574
else:
7675
assert_equal(len(self.nodes[0].dumphdinfo()["mnemonic"].split()), 12) # 12 words by default

0 commit comments

Comments
 (0)