Skip to main content

Test code from RST documents with pytest

Project description

Actions Latest Version

pytest-rst run python tests in ReStructuredText

Code block must have :name: attribute starts with test_.


This block will running as a pytest test-case:

.. code-block:: python
    :name: test_first

    assert True
assert True

This block just not running:

.. code-block:: python

    # not a test
    assert False
# not a test
assert False


This software follows Semantic Versioning

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

pytest_rst-0.1.5.tar.gz (3.6 kB view hashes)

Uploaded source

Built Distribution

pytest_rst-0.1.5-py3-none-any.whl (4.5 kB view hashes)

Uploaded py3

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