Metadata-Version: 2.1
Name: pytest-rst
Version: 0.1.1
Summary: Test code from RST documents with pytest
Home-page: https://github.com/mosquito/pytest-rst
License: MIT
Keywords: pytest,rst,ReStructuredText,documentation
Author: Dmitry Orlov
Author-email: me@mosquito.su
Requires-Python: >=3.7,<4.0
Classifier: Framework :: Pytest
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: Russian
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Topic :: Software Development
Classifier: Topic :: Software Development :: Libraries
Project-URL: Documentation, https://github.com/mosquito/pytest-rst/blob/master/README.rst
Project-URL: Source, https://github.com/mosquito/pytest-rst
Project-URL: Tracker, https://github.com/mosquito/pytest-rst/issues
Description-Content-Type: text/x-rst

.. image:: https://coveralls.io/repos/github/mosquito/pytest-rst/badge.svg?branch=master
   :target: https://coveralls.io/github/mosquito/pytest-rst
   :alt: Coveralls

.. image:: https://github.com/mosquito/pytest-rst/workflows/tox/badge.svg
   :target: https://github.com/mosquito/pytest-rst/actions?query=workflow%3Atox
   :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/

