mirror of
https://github.com/zedeus/nitter.git
synced 2025-12-07 20:45:36 -05:00
Fix everything (#927)
* Switch bearer token and endpoints, update parser * Enable user search, disable tweet search * Disable multi-user timelines for now * Fix parsing of pinned tombstone
This commit is contained in:
@@ -74,9 +74,9 @@ retweet = [
|
||||
[3, 'mobile_test_8', 'mobile test 8', 'jack', '@jack', 'twttr']
|
||||
]
|
||||
|
||||
reply = [
|
||||
['mobile_test/with_replies', 15]
|
||||
]
|
||||
# reply = [
|
||||
# ['mobile_test/with_replies', 15]
|
||||
# ]
|
||||
|
||||
|
||||
class TweetTest(BaseTestCase):
|
||||
@@ -137,8 +137,8 @@ class TweetTest(BaseTestCase):
|
||||
self.open_nitter(tweet)
|
||||
self.assert_text('Tweet not found', '.error-panel')
|
||||
|
||||
@parameterized.expand(reply)
|
||||
def test_thread(self, tweet, num):
|
||||
self.open_nitter(tweet)
|
||||
thread = self.find_element(f'.timeline > div:nth-child({num})')
|
||||
self.assertIn(thread.get_attribute('class'), 'thread-line')
|
||||
# @parameterized.expand(reply)
|
||||
# def test_thread(self, tweet, num):
|
||||
# self.open_nitter(tweet)
|
||||
# thread = self.find_element(f'.timeline > div:nth-child({num})')
|
||||
# self.assertIn(thread.get_attribute('class'), 'thread-line')
|
||||
|
||||
Reference in New Issue
Block a user