Skip to content

Run python tests from README.rst or any .rst document with pytest

License

Notifications You must be signed in to change notification settings

mosquito/pytest-rst

Repository files navigation

Actions Latest Version

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

About

Run python tests from README.rst or any .rst document with pytest

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages