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

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sphinx_testing-0.2.0-py2.py3-none-any.whl (7.1 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

File hashes

Hashes for sphinx-testing-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d3c3d986e5a765d751afa41f9f6839c7d6cee84125defc3bf1fd86ae430a00e0
MD5 c533ec6b53daa557237747d78539c012
BLAKE2b-256 0120165445d8846dc15436840483185a0aa90366e0311c6fbf90ee1c08f60716

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sphinx_testing-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ac91046b2b799ca04b7b6252516b7bdba9d93f7407c7683f3213970465a007f1
MD5 09dee68f7967a77141e8e7eee3858a8c
BLAKE2b-256 ad586e33b2461ec869586ef0732d5443639e64c34e3c1e84d3b779057b2472ae

See more details on using hashes here.

Supported by

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