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.3.tar.gz
(3.7 kB
view details)
Built Distribution
File details
Details for the file pytest_rst-0.1.3.tar.gz
.
File metadata
- Download URL: pytest_rst-0.1.3.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.1 CPython/3.11.0 Darwin/22.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bce618d225619df0a9921fb8509d8c43bae44831ec7a839a8d89eb6c617b53c8 |
|
MD5 | d23cdd25e934484020fd9eddc7f096a6 |
|
BLAKE2b-256 | 75effa21efe371f26b96ac0e31a1b62fb2987431c21451b09057bbd3132dd355 |
File details
Details for the file pytest_rst-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: pytest_rst-0.1.3-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.1 CPython/3.11.0 Darwin/22.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 447ecbd458660a2924b3cc5005efacff7303bdfe38d07b33d962d32c21842c18 |
|
MD5 | ab55c9d57b562e9872b9bab7e83db149 |
|
BLAKE2b-256 | 08591538594d661c8ec50fa9cfbde11e980498708d9328192a3ef56092c9dbe3 |