Fixed pager test.

This commit is contained in:
Michael Lazar
2016-03-03 20:20:02 -08:00
parent e7f366c9c2
commit 51300e6ef8
2 changed files with 183 additions and 4 deletions

View File

@@ -98,8 +98,8 @@ def test_submission_pager(submission_page, terminal):
# View a submission with the pager
with mock.patch.object(terminal, 'open_pager'):
submission_page.controller.trigger(terminal.RETURN)
assert terminal.open_browser.called
submission_page.controller.trigger('l')
assert terminal.open_pager.called
# Move down to the first comment
with mock.patch.object(submission_page, 'clear_input_queue'):
@@ -107,8 +107,8 @@ def test_submission_pager(submission_page, terminal):
# View a comment with the pager
with mock.patch.object(terminal, 'open_pager'):
submission_page.controller.trigger(terminal.RETURN)
assert terminal.open_browser.called
submission_page.controller.trigger('l')
assert terminal.open_pager.called
def test_submission_vote(submission_page, refresh_token):