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.1.1.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for pytest_rst-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70fef35090a80c4e99e86fad3f0f9cbf6c633cc61fcdfdfbdf799b48204c2581 |
|
MD5 | a6a696af7faa421ce9610ed5ed5c65e9 |
|
BLAKE2b-256 | 64aa1c5e3ff7d8ab2dc82873fdd69dfa5663d894f3e48c6e52b549a169b4ed3c |