Adding tests

This commit is contained in:
Michael Lazar
2017-09-10 21:47:55 -04:00
parent 982861560a
commit 8b63e1c5de
3 changed files with 46 additions and 3 deletions

View File

@@ -87,8 +87,8 @@ def test_submission_page_construct(reddit, terminal, config, oauth):
window.subwin.addstr.assert_any_call(0, 1, text, curses.A_NORMAL)
# Cursor should not be drawn when the page is first opened
# TODO: Add a new test for this
# assert not window.subwin.chgat.called
assert not any(args[0][3] == curses.A_REVERSE
for args in window.subwin.addch.call_args_list)
# Reload with a smaller terminal window
terminal.stdscr.ncols = 20