Attempt to fix the tests

An attempt to fix the broken tests
This commit is contained in:
Edridge D'Souza
2018-07-16 16:52:08 -04:00
parent b2d3439faa
commit ad97b8ff9a
4 changed files with 26 additions and 3 deletions

View File

@@ -62,7 +62,8 @@ def test_submission_page_construct(reddit, terminal, config, oauth):
'[2]top '
'[3]rising '
'[4]new '
'[5]controversial').encode('utf-8')
'[5]controversial'
'[6]gilded ').encode('utf-8')
window.addstr.assert_any_call(0, 0, menu)
# Footer
@@ -185,6 +186,8 @@ def test_submission_order(submission_page):
assert submission_page.content.order == 'new'
submission_page.controller.trigger('5')
assert submission_page.content.order == 'controversial'
submission_page.controller.trigger('6')
assert submission_page.content.order == 'gilded'
def test_submission_move_top_bottom(submission_page):