Test code from RST documents with pytest
Project description
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
Release history Release notifications | RSS feed
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.2.tar.gz
(2.1 kB
view hashes)
Built Distribution
Close
Hashes for pytest_rst-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3874f3f325816d1d52079857307c22c295a37b2519c95fd0e8435b72be7aa7d |
|
MD5 | 5f58b2feb294746146d7f00a35b4989f |
|
BLAKE2b-256 | e25ce70ff42bf23fd0bb3fb4fd27d246128adec93e183b9bd329e722e104792e |