Got the unit tests running again.

This commit is contained in:
Michael Lazar
2016-07-20 01:20:56 -07:00
parent e7c2d82d93
commit f688659f84
10 changed files with 19681 additions and 19321 deletions

View File

@@ -76,8 +76,8 @@ def test_subscription_move(subscription_page):
# Test movement
with mock.patch.object(subscription_page, 'clear_input_queue'):
# Move cursor to the bottom of the page
while not curses.flash.called:
# Move cursor down for a little while
for _ in range(50):
subscription_page.controller.trigger('j')
curses.flash.reset_mock()
assert subscription_page.nav.inverted
@@ -124,7 +124,10 @@ def test_subscription_close(subscription_page):
assert subscription_page.active is False
def test_subscription_page_invalid(subscription_page):
def test_subscription_page_invalid(subscription_page, oauth, refresh_token):
oauth.config.refresh_token = refresh_token
oauth.authorize()
# Test that other commands don't crash
methods = [