Skip to main content

testing utility classes and functions for Sphinx extensions

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

Project details


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.1.0.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

sphinx_testing-0.1.0-py2.py3-none-any.whl (7.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file sphinx-testing-0.1.0.tar.gz.

File metadata

File hashes

Hashes for sphinx-testing-0.1.0.tar.gz
Algorithm Hash digest
SHA256 72c0968411bc652626badebc8ef310bad10816929e4a29725b1f24bb94081530
MD5 d5285ad5f0cab520c52e8cdeb74ddc10
BLAKE2b-256 04c37d083a0727ed89d1c23ebb3e96a0f16c98e70c0aa6683230e2c99353f72b

See more details on using hashes here.

File details

Details for the file sphinx_testing-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_testing-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1209229c3acce11d5179de8f1c418cb51dff9bfc1e4a719f0dce128bac85a361
MD5 462227440b0328b878d26849fc272390
BLAKE2b-256 31706c5a0f504f0173705b12161dbff80a1c311b1b129cb093bfdc395b60422e

See more details on using hashes here.

Supported by

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