From e5d249a2716d525824dd7a2072b420eb72a3d3f6 Mon Sep 17 00:00:00 2001 From: Zed Date: Fri, 13 Sep 2019 12:38:41 +0200 Subject: [PATCH] Update failing tests --- tests/base.py | 4 ++-- tests/test_card.py | 18 +++++++++--------- tests/test_thread.py | 4 ++-- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/tests/base.py b/tests/base.py index 709df72..1e1ed8f 100644 --- a/tests/base.py +++ b/tests/base.py @@ -95,8 +95,8 @@ class BaseTestCase(BaseCase): def search_username(self, username): self.open_nitter() - self.update_text('input', username) - self.submit('form') + self.update_text('.search-panel input', username) + self.submit('.search-panel form') def get_timeline_tweet(num=1): diff --git a/tests/test_card.py b/tests/test_card.py index fba1041..c716b3a 100644 --- a/tests/test_card.py +++ b/tests/test_card.py @@ -8,11 +8,6 @@ card = [ 'A sample of a Qt app written using mostly nim. Contribute to sinkingsugar/nimqt-example development by creating an account on GitHub.', 'github.com', False], - ['Bountysource/status/1141879700639215617', - '$1,000 Bounty on kivy/plyer', - 'Automation and Screen Reader Support', - 'bountysource.com', False], - ['lorenlugosch/status/1115440394148487168', 'lorenlugosch/pretrain_speech_model', 'Speech Model Pre-training for End-to-End Spoken Language Understanding - lorenlugosch/pretrain_speech_model', @@ -38,6 +33,11 @@ card = [ 'We are very proud to announce Nim version 0.20. This is a massive release, both literally and figuratively. It contains more than 1,000 commits and it marks our release candidate for version 1.0!', 'nim-lang.org', True], + ['nim_lang/status/1082989146040340480', + 'Nim in 2018: A short recap', + 'Posted in r/programming by u/miran1', + 'reddit.com', False], + ['Tesla/status/1141041022035623936', 'Experience the Tesla Arcade', '', @@ -65,10 +65,10 @@ card = [ ] no_thumb = [ - ['nim_lang/status/1082989146040340480', - 'Nim in 2018: A short recap', - 'Posted in r/programming by u/miran1 • 36 points and 46 comments', - 'reddit.com'], + ['Bountysource/status/1141879700639215617', + '$1,000 Bounty on kivy/plyer', + 'Automation and Screen Reader Support', + 'bountysource.com'], ['brent_p/status/1088857328680488961', 'Hts Nim Sugar', diff --git a/tests/test_thread.py b/tests/test_thread.py index 13056fd..3064273 100644 --- a/tests/test_thread.py +++ b/tests/test_thread.py @@ -3,7 +3,7 @@ from parameterized import parameterized thread = [ ['octonion/status/975253897697611777', [], 'Based', ['Crystal', 'Julia'], [ - ['For', 'Then', 'Okay,', 'Python', 'Speed', 'Java', 'Coding', 'I', 'more'], + ['For', 'Then', 'Okay,', 'Python', 'Speed', 'Java', 'Coding', 'I', 'You'], ['yeah,'] ]], @@ -13,7 +13,7 @@ thread = [ ['gauravssnl/status/975364889039417344', ['Based', 'For', 'Then', 'Okay,', 'Python'], 'Speed', [], [ - ['Java', 'more'], ['JAVA!'] + ['Java', 'Coding', 'I', 'You'], ['JAVA!'] ]], ['d0m96/status/1141811379407425537', [], 'I\'m',