Skip to main content

Test code from RST documents with pytest

Project description

Coveralls Actions Latest Version https://img.shields.io/pypi/wheel/pytest-rst.svg https://img.shields.io/pypi/pyversions/pytest-rst.svg https://img.shields.io/pypi/l/pytest-rst.svg

pytest-rst run python tests in ReStructuredText

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

Example

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

Versioning

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 details)

Uploaded Source

File details

Details for the file pytest-rst-0.0.7.tar.gz.

File metadata

  • Download URL: pytest-rst-0.0.7.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for pytest-rst-0.0.7.tar.gz
Algorithm Hash digest
SHA256 2b34aa9d41ce8dce3e685e6f40dff432804962ffec49d3d37565f2dbad4014d5
MD5 cfd56a01bf0901cdd95d162f28d867b2
BLAKE2b-256 05356f5dc39be814272349a21844273cd1a35ca75fbb103770f1fe21fff20ef4

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