Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tests/test_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ def test_images_exist_and_have_alt_text(doc):
assert images, f'{doc} has no screenshots'
for alt, target in images:
assert alt.strip(), f'{doc}: {target} has no alt text'
if target.startswith(('https://', 'http://')):
continue # a hosted image, such as a badge
assert (path.parent / target).resolve().is_file(), f'{doc}: {target}'


Expand Down
Loading