Updated help, switch help screen to PAGER.

This commit is contained in:
Michael Lazar
2016-08-03 22:05:13 -07:00
parent 158e6b5059
commit 9894e2ce1d
4 changed files with 55 additions and 34 deletions

View File

@@ -71,9 +71,9 @@ def test_page_unauthenticated(reddit, terminal, config, oauth):
assert sys_exit.called
# Show help
page.controller.trigger('?')
message = '[Basic Commands]'.encode('utf-8')
terminal.stdscr.subwin.addstr.assert_any_call(1, 1, message)
with mock.patch('subprocess.Popen') as Popen:
page.controller.trigger('?')
assert Popen.called
# Sort content
page.controller.trigger('1')