twmr / pytest-sphinx

sphinx doctest plugin for pytest
BSD 3-Clause "New" or "Revised" License
30 stars 6 forks source link

============= pytest-sphinx

.. image:: https://github.com/thisch/pytest-sphinx/workflows/Test/badge.svg :target: https://github.com/thisch/pytest-sphinx/actions :alt: Action Status

A doctest plugin for pytest, which understands the sphinx-specific directives from doctest-sphinx_. Those sphinx-specific directives can be used in rst files as well as in docstrings of python modules.

Features

Requirements

Installation

You can install "pytest-sphinx" via pip from PyPI::

$ pip install pytest-sphinx

Usage

Contributing

Contributions are very welcome. Tests can be run with tox_, please ensure the coverage at least stays the same before you submit a pull request.

License

Distributed under the terms of the BSD-3_ license, "pytest-sphinx" is free and open source software

Issues

If you encounter any problems, please file an issue_ along with a detailed description.

.. doctest-sphinx: http://www.sphinx-doc.org/en/stable/ext/doctest.html .. doctest-examples: https://github.com/sphinx-doc/sphinx/blob/master/tests/roots/test-ext-doctest/doctest.txt .. @hackebrot: https://github.com/hackebrot .. MIT: http://opensource.org/licenses/MIT .. BSD-3: http://opensource.org/licenses/BSD-3-Clause .. GNU GPL v3.0: http://www.gnu.org/licenses/gpl-3.0.txt .. Apache Software License 2.0: http://www.apache.org/licenses/LICENSE-2.0 .. file an issue: https://github.com/thisch/pytest-sphinx/issues .. pytest: https://github.com/pytest-dev/pytest .. tox: https://tox.readthedocs.io/en/latest/ .. pip: https://pypi.python.org/pypi/pip/ .. PyPI: https://pypi.python.org/pypi