testing utility classes and functions for Sphinx extensions
Project description
sphinx-testing provides testing utility classes and functions for Sphinx extensions.
Setup
Use easy_install or pip:
$ sudo pip install sphinx-testing
Usage
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
Requirements
Python 2.6, 2.7, 3.3 or later
Sphinx 0.6 or later
six
License
BSD License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sphinx-testing-0.5.2.tar.gz
(10.6 kB
view hashes)
Built Distribution
Close
Hashes for sphinx_testing-0.5.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e4c40001506669bedc5e0763602e661bf5717d918321526f10202bd6ba2ab38 |
|
MD5 | b3132eb24938140955ba85ecff7260f3 |
|
BLAKE2b-256 | be4a979084131569109f6c76df98015d70b3e5447de09fd89bcfa70dc53f1f2f |