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.3.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for pytest_rst-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee4dcfa807897b15ad0fbc5ee5057727af42d246e16608783a966c6f58fa5340 |
|
MD5 | 3649289757aa5fbe9299c063a03b6470 |
|
BLAKE2b-256 | d4bf3feaf3196c0307363db56799e45a9b6315b533938b71bf32a1b7d464738c |