sphinx-testing provides testing utility classes and functions for Sphinx extensions.
Important
This package has been deprecated. Please use sphinx.testing package instead. It is bundled with Sphinx.
Use easy_install or pip:
$ sudo pip install sphinx-testing
Example:
from sphinx_testing import with_app @with_app(buildername='html', srcdir='/path/to/examples', copy_srcdir_to_tmpdir=True) def test_sphinx_build(app, status, warning): app.build() html = (app.outdir / 'index.html').read_text() assert '<h1>Hello world</h1>' in html
- Python 2.6, 2.7, 3.4 or later
- Sphinx 0.6 or later
- six
BSD License