diff --git a/tests/test_docs.py b/tests/test_docs.py index 4db83f7..4311e25 100644 --- a/tests/test_docs.py +++ b/tests/test_docs.py @@ -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}'