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.6.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for pytest_rst-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e348e983ba4f153d365a4eb317964954807dfe49365d644d0f3ae40c122e36a |
|
MD5 | d997520ce992a02802650516dc67754c |
|
BLAKE2b-256 | 15e9adfaa9de96e521c6a6793b18743c2b5792f5879add89e2c99b09d2536f64 |