mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
[tests] skip tests that need remote content if host is offline (#12091)
This commit is contained in:
@@ -5,6 +5,7 @@ import docutils
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.mark.usefixtures('if_online')
|
||||
@pytest.mark.sphinx('html', testroot='images')
|
||||
def test_html_remote_images(app, status, warning):
|
||||
app.build(force_all=True)
|
||||
@@ -24,6 +25,7 @@ def test_html_encoded_image(app, status, warning):
|
||||
assert (app.outdir / '_images/img_#1.png').exists()
|
||||
|
||||
|
||||
@pytest.mark.usefixtures('if_online')
|
||||
@pytest.mark.sphinx('html', testroot='remote-logo')
|
||||
def test_html_remote_logo(app, status, warning):
|
||||
app.build(force_all=True)
|
||||
|
||||
@@ -1398,6 +1398,7 @@ def test_latex_raw_directive(app, status, warning):
|
||||
assert 'LaTeX: abc def ghi' in result
|
||||
|
||||
|
||||
@pytest.mark.usefixtures('if_online')
|
||||
@pytest.mark.sphinx('latex', testroot='images')
|
||||
def test_latex_images(app, status, warning):
|
||||
app.build(force_all=True)
|
||||
|
||||
Reference in New Issue
Block a user