mirror of https://gitlab.com/bashrc2/epicyon
Use a more appropriate reference
parent
9a7b95eca4
commit
f3620f4103
6
tests.py
6
tests.py
|
@ -3624,12 +3624,12 @@ def _test_web_links():
|
|||
assert expected_text in linked_text
|
||||
|
||||
example_text = \
|
||||
'This post has an arxiv link arXiv:2212.14672 some other text'
|
||||
'This post has an arxiv link arXiv:2203.15752 some other text'
|
||||
linked_text = add_web_links(example_text)
|
||||
expected_text = \
|
||||
'<a href="https://arxiv.org/abs/2212.14672" tabindex="10" ' + \
|
||||
'<a href="https://arxiv.org/abs/2203.15752" tabindex="10" ' + \
|
||||
'rel="nofollow noopener noreferrer"' + \
|
||||
' target="_blank"><span class="ellipsis">arXiv:2212.14672</span></a>'
|
||||
' target="_blank"><span class="ellipsis">arXiv:2203.15752</span></a>'
|
||||
if expected_text not in linked_text:
|
||||
print(expected_text + '\n')
|
||||
print(linked_text)
|
||||
|
|
Loading…
Reference in New Issue