Updating tests

This commit is contained in:
Michael Lazar
2017-09-14 00:27:18 -04:00
parent 7e2d3c16ea
commit c1f3eb447a
5 changed files with 3426 additions and 47 deletions

View File

@@ -75,22 +75,6 @@ def test_page_unauthenticated(reddit, terminal, config, oauth):
page.controller.trigger('?')
assert Popen.called
# Sort content - normal page
page.content.query = ''
page.controller.trigger('1')
page.refresh_content.assert_called_with(order='hot')
page.controller.trigger('3')
page.refresh_content.assert_called_with(order='rising')
page.controller.trigger('4')
page.refresh_content.assert_called_with(order='new')
# Sort content - search results
page.content.query = 'search text'
page.controller.trigger('1')
page.refresh_content.assert_called_with(order='relevance')
page.controller.trigger('4')
page.refresh_content.assert_called_with(order='new')
logged_in_methods = [
'a', # Upvote
'z', # Downvote