mirror of
https://github.com/zedeus/nitter
synced 2026-09-06 07:09:31 +00:00
Update tests
This commit is contained in:
parent
768ec3632f
commit
84dfcd089a
5 changed files with 17 additions and 17 deletions
|
|
@ -4,15 +4,15 @@ from parameterized import parameterized
|
|||
profiles = [
|
||||
['mobile_test', 'Test account',
|
||||
'Test Account. test test Testing username with @mobile_test_2 and a #hashtag',
|
||||
'📍 San Francisco, CA', '🔗 example.com/foobar', '📅 Joined October 2009', '100'],
|
||||
['mobile_test_2', 'mobile test 2', '', '', '', '📅 Joined January 2011', '13']
|
||||
'San Francisco, CA', 'example.com/foobar', 'Joined October 2009', '100'],
|
||||
['mobile_test_2', 'mobile test 2', '', '', '', 'Joined January 2011', '13']
|
||||
]
|
||||
|
||||
verified = [['jack'], ['elonmusk']]
|
||||
|
||||
protected = [
|
||||
['mobile_test_7', 'mobile test 7🔒', ''],
|
||||
['Poop', 'Randy🔒', 'Social media fanatic.']
|
||||
['mobile_test_7', 'mobile test 7', ''],
|
||||
['Poop', 'Randy', 'Social media fanatic.']
|
||||
]
|
||||
|
||||
invalid = [['thisprofiledoesntexist'], ['%']]
|
||||
|
|
@ -39,7 +39,7 @@ class ProfileTest(BaseTestCase):
|
|||
(location, Profile.location),
|
||||
(website, Profile.website),
|
||||
(joinDate, Profile.joinDate),
|
||||
(f"🖼 {mediaCount} Photos and videos", Profile.mediaCount)
|
||||
(mediaCount + " Photos and videos", Profile.mediaCount)
|
||||
]
|
||||
|
||||
for text, selector in tests:
|
||||
|
|
|
|||
Loading…
Reference in a new issue