Line length

merge-requests/8/head
Bob Mottram 2020-10-25 10:08:02 +00:00
parent a4f9d57294
commit bd77f9f403
1 changed files with 6 additions and 1 deletions

View File

@ -2313,7 +2313,12 @@ def testHashtagRuleTree():
def testGetNewswireTags():
print('testGetNewswireTags')
rssDescription='<img src="https://somesite/someimage.jpg" class="misc-stuff" alt="#ExcitingHashtag" srcset="https://somesite/someimage.jpg" sizes="(max-width: 864px) 100vw, 864px" />Compelling description with #ExcitingHashtag, which is being posted in #BoringForum'
rssDescription='<img src="https://somesite/someimage.jpg" ' + \
'class="misc-stuff" alt="#ExcitingHashtag" ' + \
'srcset="https://somesite/someimage.jpg" ' + \
'sizes="(max-width: 864px) 100vw, 864px" />' + \
'Compelling description with #ExcitingHashtag, which is ' + \
'being posted in #BoringForum'
tags = getNewswireTags(rssDescription, 10)
assert len(tags) == 2
assert '#BoringForum' in tags