blah blah blah
' in html assert 'see ' in html @pytest.mark.sphinx('epub', testroot='html_assets') def test_epub_assets(app): app.builder.build_all() # epub_sytlesheets (same as html_css_files) content = (app.outdir / 'index.xhtml').text() assert ('' in content) assert ('' in content) @pytest.mark.sphinx('epub', testroot='html_assets', confoverrides={'epub_css_files': ['css/epub.css']}) def test_epub_css_files(app): app.builder.build_all() # epub_css_files content = (app.outdir / 'index.xhtml').text() assert '' in content # files in html_css_files are not outputed assert ('' not in content) assert ('' 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() assert not (app.outdir / '_downloads' / 'dummy.dat').exists() content = (app.outdir / 'index.xhtml').text() assert (''
'dummy.dat
'
'not_found.dat
'
'Sphinx logo
'
' [http://www.sphinx-doc.org/en/master'
'/_static/sphinxheader.png]