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.2 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.7.0.tar.gz
(10.6 kB
view hashes)
Built Distribution
Close
Hashes for sphinx_testing-0.7.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca14ee12f6c80a453c473550c239bfb7ddca5dc651db22257300e9ca0f23a04c |
|
MD5 | 8c4a97f6b44341c7afc702e3a3edab9d |
|
BLAKE2b-256 | cb9f1029f407e61a4d4bab372b733c8f5ad2da5b51e3388b45e64826fef9ddb8 |