Skip to main content

testing utility classes and functions for Sphinx extensions

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

sphinx-testing provides testing utility classes and functions for Sphinx extensions.

Latest PyPI version Number of PyPI downloads

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):
    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

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page