Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pytest-rst

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pytest-rst

Test code from RST documents with pytest

  • 0.1.5
  • Source
  • PyPI
  • Socket score

Maintainers
1

.. image:: https://github.com/mosquito/pytest-rst/workflows/tests/badge.svg :target: https://github.com/mosquito/pytest-rst/actions?query=workflow%3Atests :alt: Actions

.. image:: https://img.shields.io/pypi/v/pytest-rst.svg :target: https://pypi.python.org/pypi/pytest-rst/ :alt: Latest Version

.. image:: https://img.shields.io/pypi/wheel/pytest-rst.svg :target: https://pypi.python.org/pypi/pytest-rst/

.. image:: https://img.shields.io/pypi/pyversions/pytest-rst.svg :target: https://pypi.python.org/pypi/pytest-rst/

.. image:: https://img.shields.io/pypi/l/pytest-rst.svg :target: https://pypi.python.org/pypi/pytest-rst/

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:: rst

.. code-block:: python
    :name: test_first

    assert True

.. code-block:: python :name: test_first

assert True

This block just not running:

.. code-block:: rst

.. code-block:: python

    # not a test
    assert False

.. code-block:: python

# not a test
assert False

Versioning

This software follows Semantic Versioning_

.. _Semantic Versioning: http://semver.org/

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc