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.5.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for pytest_rst-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d79b235a0775a6f7cbadaf8389ee11b45c486d1d1b2486ddf098c61b0542fc37 |
|
MD5 | 06ddfb6227f28ae76d333feebbd70906 |
|
BLAKE2b-256 | 4ec4888fd061e3ea56a122d59576ceaf3fe753a66e29265962d7d059f09ad37b |