Trying again to fix tests

This commit is contained in:
Edridge D'Souza
2018-07-16 17:29:30 -04:00
parent 95d184bfbe
commit 93bf150780
3 changed files with 3 additions and 18 deletions

View File

@@ -58,12 +58,7 @@ def test_submission_page_construct(reddit, terminal, config, oauth):
window.addstr.assert_any_call(0, 0, title) window.addstr.assert_any_call(0, 0, title)
# Banner # Banner
menu = ('[1]hot ' menu = '[1]hot [2]top [3]rising [4]new [5]controversial [6]gilded'.encode('utf-8')
'[2]top '
'[3]rising '
'[4]new '
'[5]controversial'
'[6]gilded ').encode('utf-8')
window.addstr.assert_any_call(0, 0, menu) window.addstr.assert_any_call(0, 0, menu)
# Footer # Footer

View File

@@ -30,12 +30,7 @@ def test_subreddit_page_construct(reddit, terminal, config, oauth):
window.addstr.assert_any_call(0, 0, title) window.addstr.assert_any_call(0, 0, title)
# Banner # Banner
menu = ('[1]hot ' menu = '[1]hot [2]top [3]rising [4]new [5]controversial [6]gilded'.encode('utf-8')
'[2]top '
'[3]rising '
'[4]new '
'[5]controversial'
'[6]gilded ').encode('utf-8')
window.addstr.assert_any_call(0, 0, menu) window.addstr.assert_any_call(0, 0, menu)
# Submission # Submission

View File

@@ -36,12 +36,7 @@ def test_subscription_page_construct(reddit, terminal, config, oauth,
assert name in [args[0][2] for args in window.addstr.call_args_list] assert name in [args[0][2] for args in window.addstr.call_args_list]
# Banner shouldn't be drawn # Banner shouldn't be drawn
menu = ('[1]hot ' menu = '[1]hot [2]top [3]rising [4]new [5]controversial [6]gilded'.encode('utf-8')
'[2]top '
'[3]rising ' # Whitespace is relevant
'[4]new '
'[5]controversial'
'[6]gilded ').encode('utf-8')
with pytest.raises(AssertionError): with pytest.raises(AssertionError):
window.addstr.assert_any_call(0, 0, menu) window.addstr.assert_any_call(0, 0, menu)