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

Uploaded Source

Built Distribution

pytest_rst-0.0.2-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytest-rst-0.0.2.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for pytest-rst-0.0.2.tar.gz
Algorithm Hash digest
SHA256 64114b53bc887f5f54aa3c422a359c0a4b1645bb180af441f749e25f63d80bd0
MD5 4ff09b4e2c8c970b859795aa1d592550
BLAKE2b-256 b58a681a84010192b411e2f8e1a1bd69865a01abed651d6397ec3e9a451f2169

See more details on using hashes here.

File details

Details for the file pytest_rst-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: pytest_rst-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for pytest_rst-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d3874f3f325816d1d52079857307c22c295a37b2519c95fd0e8435b72be7aa7d
MD5 5f58b2feb294746146d7f00a35b4989f
BLAKE2b-256 e25ce70ff42bf23fd0bb3fb4fd27d246128adec93e183b9bd329e722e104792e

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