Skip to main content

Test code from RST documents with pytest

Project description

Coveralls 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.0.7.tar.gz (3.9 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page