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

Uploaded Source

Built Distribution

pytest_rst-0.1.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file pytest_rst-0.1.0.tar.gz.

File metadata

  • Download URL: pytest_rst-0.1.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.11.0 Darwin/22.2.0

File hashes

Hashes for pytest_rst-0.1.0.tar.gz
Algorithm Hash digest
SHA256 58023a82aba15cf8b9607dbb8921fb200782918b8d48535d6fee5dd4f4b12070
MD5 0fe934445b4762cbd317a4eb164bb300
BLAKE2b-256 4f906420edcf5722423f45bed4ecbca4f7a6b93110511db6c03a20edb11a9a82

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytest_rst-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.11.0 Darwin/22.2.0

File hashes

Hashes for pytest_rst-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c6d4e5cd276f5f8682f02fd7ae27acb0df770e059b591277a35c666781590305
MD5 0ea50e9dca786298bec7851da4a0d6be
BLAKE2b-256 d1f13abf775bd40ae939f36d613caf67b4e5fbef909aa37bde8946ef86a4d629

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