master
Bob Mottram 2019-09-01 09:57:51 +01:00
parent 565bf041e2
commit e93071af5d
1 changed files with 2 additions and 2 deletions

View File

@ -1370,10 +1370,10 @@ def testActorParsing():
assert nickname=='othernick'
def testWebLinks():
print('testWebLinks')
exampleText='This post has a web links https://somesite.net\n\nAnd some other text'
linkedText=addWebLinks(exampleText)
print(exampleText)
print(linkedText)
assert '<a href="https://somesite.net" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="ellipsis">somesite.net</span></a' in linkedText
def runAllTests():
print('Running tests...')