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

Uploaded Source

Built Distribution

pytest_rst-0.0.6-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytest-rst-0.0.6.tar.gz
  • Upload date:
  • Size: 4.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.6.tar.gz
Algorithm Hash digest
SHA256 cd1b09d0a1fb209dd6e528b7c597c45dcbbd9e757f70d7bfe58e7ab543b977d5
MD5 9daf41d6ffcb7a151603efd9c19db668
BLAKE2b-256 049824918101fe4a0db5209e07ed38a23251075c9f076c8cad57eb0ae83441e9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytest_rst-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 4.2 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 3e348e983ba4f153d365a4eb317964954807dfe49365d644d0f3ae40c122e36a
MD5 d997520ce992a02802650516dc67754c
BLAKE2b-256 15e9adfaa9de96e521c6a6793b18743c2b5792f5879add89e2c99b09d2536f64

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