Browse Source

minor testing fixes

The MMGen Project 2 years ago
parent
commit
2e395edae2
2 changed files with 3 additions and 3 deletions
  1. 2 2
      mmgen/proto/btc/tw/addresses.py
  2. 1 1
      test/test_py_d/ts_shared.py

+ 2 - 2
mmgen/proto/btc/tw/addresses.py

@@ -66,8 +66,8 @@ Actions: [q]uit, r[e]draw, add [l]abel:
 		msg('done')
 		msg('done')
 
 
 		msg_r('Getting received funds data...')
 		msg_r('Getting received funds data...')
-		# args: 1:minconf, 2:include_empty, 3:include_watchonly, 4:include_immature_coinbase
-		for d in await self.rpc.call( 'listreceivedbylabel', 1, False, True ):
+		# args: 1:minconf, 2:include_empty, 3:include_watchonly, 4:include_immature_coinbase (>=v23.0.0)
+		for d in await self.rpc.call( 'listreceivedbylabel', 1, True, True ):
 			label = get_obj( TwLabel, proto=self.proto, text=d['label'] )
 			label = get_obj( TwLabel, proto=self.proto, text=d['label'] )
 			if label:
 			if label:
 				assert label.mmid in addrs, f'{label.mmid!r} not found in addrlist!'
 				assert label.mmid in addrs, f'{label.mmid!r} not found in addrlist!'

+ 1 - 1
test/test_py_d/ts_shared.py

@@ -63,7 +63,7 @@ class TestSuiteShared(object):
 		if auto_chg_arg is not None:
 		if auto_chg_arg is not None:
 			if auto_chg_choices > 1:
 			if auto_chg_choices > 1:
 				t.expect('Enter a number> ',f'{auto_chg_choices}\n')
 				t.expect('Enter a number> ',f'{auto_chg_choices}\n')
-			t.expect(fr'Using .*{auto_chg_arg}:\d+\D.* as.*address','y',regex=True)
+			t.expect(fr'Using .*{auto_chg_arg}:\d+.* as.*address','y',regex=True)
 
 
 		pat = expect_pat
 		pat = expect_pat
 		for choice in menu + ['q']:
 		for choice in menu + ['q']: