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.3.tar.gz
(2.9 kB
view details)
Built Distribution
File details
Details for the file pytest-rst-0.0.3.tar.gz
.
File metadata
- Download URL: pytest-rst-0.0.3.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2833cec46880f78b1b252a48b20e48881db062fabbc177bd71798bf7cf747766 |
|
MD5 | a986d5c1defd06d534ecee4415e38b0e |
|
BLAKE2b-256 | c051b806088e7a88d727c7231932aa7483d92abef777000e88d25311d526ec40 |
File details
Details for the file pytest_rst-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: pytest_rst-0.0.3-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee4dcfa807897b15ad0fbc5ee5057727af42d246e16608783a966c6f58fa5340 |
|
MD5 | 3649289757aa5fbe9299c063a03b6470 |
|
BLAKE2b-256 | d4bf3feaf3196c0307363db56799e45a9b6315b533938b71bf32a1b7d464738c |