Update tests
This commit is contained in:
+12
-17
@@ -11,18 +11,18 @@ card = [
|
|||||||
['voidtarget/status/1094632512926605312',
|
['voidtarget/status/1094632512926605312',
|
||||||
'Basic OBS Studio plugin, written in nim, supporting C++ (C fine too)',
|
'Basic OBS Studio plugin, written in nim, supporting C++ (C fine too)',
|
||||||
'Basic OBS Studio plugin, written in nim, supporting C++ (C fine too) - obsplugin.nim',
|
'Basic OBS Studio plugin, written in nim, supporting C++ (C fine too) - obsplugin.nim',
|
||||||
'gist.github.com', True]
|
'gist.github.com', True],
|
||||||
|
|
||||||
|
['NASA/status/2061872347477418301',
|
||||||
|
'Nancy Grace Roman Space Telescope Mission - NASA Science',
|
||||||
|
'The Nancy Grace Roman Space Telescope will settle essential questions in the areas of dark energy, exoplanets, and astrophysics.',
|
||||||
|
'science.nasa.gov', True]
|
||||||
]
|
]
|
||||||
|
|
||||||
no_thumb = [
|
no_thumb = [
|
||||||
['FluentAI/status/1116417904831029248',
|
|
||||||
'LinkedIn',
|
|
||||||
'This link will take you to a page that’s not on LinkedIn',
|
|
||||||
'lnkd.in'],
|
|
||||||
|
|
||||||
['Thom_Wolf/status/1122466524860702729',
|
['Thom_Wolf/status/1122466524860702729',
|
||||||
'GitHub - facebookresearch/fairseq: Facebook AI Research Sequence-to-Sequence Toolkit written in',
|
'GitHub - facebookresearch/XLM: PyTorch original implementation of Cross-lingual Language Model',
|
||||||
'',
|
'PyTorch original implementation of Cross-lingual Language Model Pretraining.',
|
||||||
'github.com'],
|
'github.com'],
|
||||||
|
|
||||||
['brent_p/status/1088857328680488961',
|
['brent_p/status/1088857328680488961',
|
||||||
@@ -37,14 +37,9 @@ no_thumb = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
playable = [
|
playable = [
|
||||||
['nim_lang/status/1118234460904919042',
|
['NASA/status/2047048645845897398',
|
||||||
'Nim development blog 2019-03',
|
'NASA\'s Artemis II News Conference with Moon Astronauts',
|
||||||
'Arne (aka Krux02)* debugging: * improved nim-gdb, $ works, framefilter * alias for --debugger:native: -g* bugs: * forwarding of .pure. * sizeof union* fe...',
|
'Live from NASA\'s Johnson Space Center in Houston',
|
||||||
'youtube.com'],
|
|
||||||
|
|
||||||
['nim_lang/status/1121090879823986688',
|
|
||||||
'Nim - First natively compiled language w/ hot code-reloading at...',
|
|
||||||
'#nim #c++ #ACCUConfNim is a statically typed systems and applications programming language which offers perhaps some of the most powerful metaprogramming cap...',
|
|
||||||
'youtube.com']
|
'youtube.com']
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -72,7 +67,7 @@ class CardTest(BaseTestCase):
|
|||||||
if len(description) > 0:
|
if len(description) > 0:
|
||||||
self.assert_text(description, c.description)
|
self.assert_text(description, c.description)
|
||||||
|
|
||||||
@parameterized.expand(playable)
|
@parameterized.expand(playable, skip_on_empty=True)
|
||||||
def test_card_playable(self, tweet, title, description, destination):
|
def test_card_playable(self, tweet, title, description, destination):
|
||||||
self.open_nitter(tweet)
|
self.open_nitter(tweet)
|
||||||
c = Card(Conversation.main + " ")
|
c = Card(Conversation.main + " ")
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ thread = [
|
|||||||
[],
|
[],
|
||||||
"Based",
|
"Based",
|
||||||
["Crystal", "Julia"],
|
["Crystal", "Julia"],
|
||||||
[["yeah,"]],
|
[["For", "Then"], ["yeah,"]],
|
||||||
],
|
],
|
||||||
["octonion/status/975254452625002496", ["Based"], "Crystal", ["Julia"], []],
|
["octonion/status/975254452625002496", ["Based"], "Crystal", ["Julia"], []],
|
||||||
["octonion/status/975256058384887808", ["Based", "Crystal"], "Julia", [], []],
|
["octonion/status/975256058384887808", ["Based", "Crystal"], "Julia", [], []],
|
||||||
|
|||||||
+3
-3
@@ -71,8 +71,8 @@ emoji = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
retweet = [
|
retweet = [
|
||||||
[7, 'mobile_test_2', 'mobile test 2', 'Test account', '@mobile_test', '1234'],
|
[7, 'mobile_test_2', 'mobile test 2', 'Test account', '@mobile_test',
|
||||||
[3, 'mobile_test_8', 'mobile test 8', 'jack', '@jack', 'twttr']
|
'Testing. 1234.']
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
@@ -120,7 +120,7 @@ class TweetTest(BaseTestCase):
|
|||||||
link = self.find_link_text(f'@{un}')
|
link = self.find_link_text(f'@{un}')
|
||||||
self.assertIn(f'/{un}', link.get_property('href'))
|
self.assertIn(f'/{un}', link.get_property('href'))
|
||||||
|
|
||||||
@parameterized.expand(retweet)
|
@parameterized.expand(retweet, skip_on_empty=True)
|
||||||
def test_retweet(self, index, url, retweet_by, fullname, username, text):
|
def test_retweet(self, index, url, retweet_by, fullname, username, text):
|
||||||
self.open_nitter(url)
|
self.open_nitter(url)
|
||||||
tweet = get_timeline_tweet(index)
|
tweet = get_timeline_tweet(index)
|
||||||
|
|||||||
@@ -28,14 +28,14 @@ video_m3u8 = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
gallery = [
|
gallery = [
|
||||||
# ['mobile_test/status/451108446603980803', [
|
['mobile_test/status/451108446603980803', [
|
||||||
# ['BkKovdrCUAAEz79', 'BkKovdcCEAAfoBO']
|
['BkKovdrCUAAEz79', 'BkKovdcCEAAfoBO']
|
||||||
# ]],
|
]],
|
||||||
|
|
||||||
# ['mobile_test/status/471539824713691137', [
|
['mobile_test/status/471539824713691137', [
|
||||||
# ['Bos--KNIQAAA7Li', 'Bos--FAIAAAWpah'],
|
['Bos--KNIQAAA7Li', 'Bos--FAIAAAWpah'],
|
||||||
# ['Bos--IqIQAAav23']
|
['Bos--IqIQAAav23']
|
||||||
# ]],
|
]],
|
||||||
|
|
||||||
['mobile_test/status/469530783384743936', [
|
['mobile_test/status/469530783384743936', [
|
||||||
['BoQbwJAIUAA0QCY', 'BoQbwN1IMAAuTiP'],
|
['BoQbwJAIUAA0QCY', 'BoQbwN1IMAAuTiP'],
|
||||||
|
|||||||
Reference in New Issue
Block a user