Fixed another test.

This commit is contained in:
Michael Lazar
2016-06-23 23:08:30 -07:00
parent a5a42fc5da
commit 8529b4a313

View File

@@ -150,7 +150,7 @@ def test_subreddit_post(subreddit_page, terminal, reddit, refresh_token):
with mock.patch.object(terminal, 'open_editor'):
terminal.open_editor.return_value.__enter__.return_value = 'title'
subreddit_page.controller.trigger('c')
text = 'Canceled'.encode('utf-8')
text = 'Missing body'.encode('utf-8')
terminal.stdscr.subwin.addstr.assert_called_with(1, 1, text)
# Post a fake submission