mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Regression: restore extraction of data-URI images from source for builders whose output formats do not support them natively (#12344)
This commit is contained in:
@@ -409,6 +409,7 @@ def test_copy_images(app, status, warning):
|
||||
images = {image.name for image in images_dir.rglob('*')}
|
||||
images.discard('python-logo.png')
|
||||
assert images == {
|
||||
# 'ba30773957c3fe046897111afd65a80b81cad089.png', # epub: image from data:image/png URI in source
|
||||
'img.png',
|
||||
'rimg.png',
|
||||
'rimg1.png',
|
||||
|
||||
@@ -72,6 +72,7 @@ def test_copy_images(app, status, warning):
|
||||
images_dir = Path(app.outdir) / '_images'
|
||||
images = {image.name for image in images_dir.rglob('*')}
|
||||
assert images == {
|
||||
# 'ba30773957c3fe046897111afd65a80b81cad089.png', # html: image from data:image/png URI in source
|
||||
'img.png',
|
||||
'rimg.png',
|
||||
'rimg1.png',
|
||||
|
||||
@@ -1711,6 +1711,7 @@ def test_copy_images(app, status, warning):
|
||||
}
|
||||
images.discard('sphinx.png')
|
||||
assert images == {
|
||||
'ba30773957c3fe046897111afd65a80b81cad089.png', # latex: image from data:image/png URI in source
|
||||
'img.pdf',
|
||||
'rimg.png',
|
||||
'testimäge.png',
|
||||
|
||||
@@ -124,6 +124,7 @@ def test_copy_images(app, status, warning):
|
||||
images = {image.name for image in images_dir.rglob('*')}
|
||||
images.discard('python-logo.png')
|
||||
assert images == {
|
||||
'ba30773957c3fe046897111afd65a80b81cad089.png', # texinfo: image from data:image/png URI in source
|
||||
'img.png',
|
||||
'rimg.png',
|
||||
'testimäge.png',
|
||||
|
||||
Reference in New Issue
Block a user