mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Do test with docutils-0.12
This commit is contained in:
parent
91b6b46a7e
commit
1a96f2b2cb
@ -13,13 +13,14 @@ matrix:
|
||||
include:
|
||||
- python: '3.5'
|
||||
env:
|
||||
- TOXENV=du13
|
||||
- TOXENV=du12
|
||||
- python: '3.6'
|
||||
env:
|
||||
- TOXENV=py36
|
||||
- PYTEST_ADDOPTS="--cov ./ --cov-append --cov-config setup.cfg"
|
||||
- TOXENV=du13
|
||||
- python: '3.7'
|
||||
env: TOXENV=py37
|
||||
env:
|
||||
- TOXENV=py37
|
||||
- PYTEST_ADDOPTS="--cov ./ --cov-append --cov-config setup.cfg"
|
||||
- python: 'nightly'
|
||||
env: TOXENV=py38
|
||||
- python: '3.6'
|
||||
|
@ -15,6 +15,8 @@ from xml.etree import ElementTree
|
||||
|
||||
import pytest
|
||||
|
||||
from sphinx.util import docutils
|
||||
|
||||
|
||||
# check given command is runnable
|
||||
def runnable(command):
|
||||
@ -351,6 +353,8 @@ def test_epub_css_files(app):
|
||||
'href="https://example.com/custom.css" />' not in content)
|
||||
|
||||
|
||||
@pytest.mark.skipif(docutils.__version_info__ < (0, 13),
|
||||
reason='docutils-0.13 or above is required')
|
||||
@pytest.mark.sphinx('epub', testroot='roles-download')
|
||||
def test_html_download_role(app, status, warning):
|
||||
app.build()
|
||||
|
@ -20,6 +20,7 @@ import pytest
|
||||
from html5lib import HTMLParser
|
||||
from test_build_html import flat_dict, tail_check, check_xpath
|
||||
|
||||
from sphinx.util import docutils
|
||||
from sphinx.util.docutils import is_html5_writer_available
|
||||
|
||||
|
||||
@ -319,6 +320,8 @@ def test_html5_output(app, cached_etree_parse, fname, expect):
|
||||
check_xpath(cached_etree_parse(app.outdir / fname), fname, *expect)
|
||||
|
||||
|
||||
@pytest.mark.skipif(docutils.__version_info__ < (0, 13),
|
||||
reason='docutils-0.13 or above is required')
|
||||
@pytest.mark.sphinx('html', tags=['testtag'], confoverrides={
|
||||
'html_context.hckey_co': 'hcval_co',
|
||||
'html_experimental_html5_writer': True})
|
||||
@ -345,6 +348,8 @@ def test_html_download(app):
|
||||
assert matched.group(1) == filename
|
||||
|
||||
|
||||
@pytest.mark.skipif(docutils.__version_info__ < (0, 13),
|
||||
reason='docutils-0.13 or above is required')
|
||||
@pytest.mark.sphinx('html', testroot='roles-download',
|
||||
confoverrides={'html_experimental_html5_writer': True})
|
||||
def test_html_download_role(app, status, warning):
|
||||
|
Loading…
Reference in New Issue
Block a user