minor testing fixes

This commit is contained in:
The MMGen Project 2022-12-03 17:40:45 +00:00
commit 2e395edae2
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
2 changed files with 3 additions and 3 deletions

View file

@ -66,8 +66,8 @@ Actions: [q]uit, r[e]draw, add [l]abel:
msg('done')
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'] )
if label:
assert label.mmid in addrs, f'{label.mmid!r} not found in addrlist!'

View file

@ -63,7 +63,7 @@ class TestSuiteShared(object):
if auto_chg_arg is not None:
if auto_chg_choices > 1:
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
for choice in menu + ['q']: