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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pytest_rst-0.1.5.tar.gz.
File metadata
- Download URL: pytest_rst-0.1.5.tar.gz
- Upload date:
- Size: 3.6 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 |
63315654b4cefd378b39b5210efdcd8a9361a2d9e466a4a26e6e9ac33e524983
|
|
| MD5 |
5340bd2872de82e4f5043865f3650589
|
|
| BLAKE2b-256 |
73b4a1be7aa4c64c62113e844799bff5cde400b3a60fed9a3d07f16d5bf4914c
|
File details
Details for the file pytest_rst-0.1.5-py3-none-any.whl.
File metadata
- Download URL: pytest_rst-0.1.5-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 |
5a638ac231ec3f59e45b16fd568e8d2c7b0a993fade4a31941913f451be84724
|
|
| MD5 |
14fe5a41868d0d19cbf6ae3e44987d44
|
|
| BLAKE2b-256 |
04fb4cceef7c9649f63f04bb2b213a9daf2d82d254edf40316f66083fc04b8e9
|