mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
20 lines
484 B
Python
20 lines
484 B
Python
# -*- coding: utf-8 -*-
|
|
"""
|
|
test_build_html
|
|
~~~~~~~~~~~~~~~
|
|
|
|
Test the HTML builder and check output against XPath.
|
|
|
|
:copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
|
|
:license: BSD, see LICENSE for details.
|
|
"""
|
|
|
|
import pytest
|
|
|
|
|
|
@pytest.mark.sphinx('epub', testroot='basic')
|
|
def test_build_epub(app):
|
|
app.build()
|
|
assert (app.outdir / 'mimetype').text() == 'application/epub+zip'
|
|
assert (app.outdir / 'META-INF' / 'container.xml').exists()
|