test.py regtest: test scroll interface for tw views
This commit is contained in:
parent
2e68cc095b
commit
b8bf2c7df2
1 changed files with 23 additions and 0 deletions
|
|
@ -353,6 +353,7 @@ class TestSuiteRegtest(TestSuiteBase,TestSuiteShared):
|
|||
),
|
||||
'view': (
|
||||
'viewing addresses and unspent outputs',
|
||||
('alice_listaddresses_scroll', 'listaddresses (--scroll, interactive=1)'),
|
||||
('alice_listaddresses_empty', 'listaddresses (no data)'),
|
||||
('alice_listaddresses_menu', 'listaddresses (menu items)'),
|
||||
('alice_listaddresses1', 'listaddresses'),
|
||||
|
|
@ -1431,6 +1432,28 @@ class TestSuiteRegtest(TestSuiteBase,TestSuiteShared):
|
|||
t.expect(r'\[q\]uit menu, .*?:.','q',regex=True)
|
||||
return t
|
||||
|
||||
def alice_listaddresses_scroll(self):
|
||||
t = self.spawn(
|
||||
'mmgen-tool', [
|
||||
'--alice',
|
||||
'--scroll',
|
||||
f'--outdir={self.tr.trash_dir}',
|
||||
'listaddresses',
|
||||
'interactive=1',
|
||||
]
|
||||
)
|
||||
t.expect('abel:\b','p')
|
||||
ret = t.expect([ 'abel:\b', 'to confirm: ' ])
|
||||
if ret == 1:
|
||||
t.send('YES\n')
|
||||
t.expect('abel:\b')
|
||||
t.send('l')
|
||||
t.expect('main menu): ','1\n')
|
||||
t.expect('for address.*: ','\n',regex=True)
|
||||
t.expect('unchanged')
|
||||
t.expect('abel:\b','q')
|
||||
return t
|
||||
|
||||
def _alice_listaddresses_interactive(self,expect=(),expect_menu=()):
|
||||
t = self.spawn('mmgen-tool',['--alice','listaddresses','interactive=1'])
|
||||
for s in expect_menu:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue