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