Skip to content

Commit

Permalink
Skip inline images in links checker test (#1111)
Browse files Browse the repository at this point in the history
Co-authored-by: reuvenp <[email protected]>
  • Loading branch information
reuvenperetz and reuvenp authored Jun 17, 2024
1 parent 06fdc8f commit 7770af9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/doc_tests/test_docs_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ def test_readme_and_rst_files(self):
if _link[0] == '#':
# A link starting with '#' is a local reference to a headline in the current file --> ignore
pass
elif _link.startswith('data:image/'):
# A link starting with 'data:image/' is a base64-encoded image --> ignore
print("Inline image, skipping:", _link)
elif 'http://' in _link or 'https://' in _link:
if self.check_link(_link):
print("Link ok:", _link)
Expand Down

0 comments on commit 7770af9

Please sign in to comment.