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.5.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for pytest_rst-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a638ac231ec3f59e45b16fd568e8d2c7b0a993fade4a31941913f451be84724 |
|
MD5 | 14fe5a41868d0d19cbf6ae3e44987d44 |
|
BLAKE2b-256 | 04fb4cceef7c9649f63f04bb2b213a9daf2d82d254edf40316f66083fc04b8e9 |