From 2e395edae2e599cf84f2e0cb636a8b07d23b7a6e Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Sat, 3 Dec 2022 17:40:45 +0000 Subject: [PATCH] minor testing fixes --- mmgen/proto/btc/tw/addresses.py | 4 ++-- test/test_py_d/ts_shared.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mmgen/proto/btc/tw/addresses.py b/mmgen/proto/btc/tw/addresses.py index 7fcf3562..c97c562b 100755 --- a/mmgen/proto/btc/tw/addresses.py +++ b/mmgen/proto/btc/tw/addresses.py @@ -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!' diff --git a/test/test_py_d/ts_shared.py b/test/test_py_d/ts_shared.py index 43df0683..8e40cd24 100755 --- a/test/test_py_d/ts_shared.py +++ b/test/test_py_d/ts_shared.py @@ -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']: