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.2.tar.gz
(3.7 kB
view details)
Built Distribution
File details
Details for the file pytest_rst-0.1.2.tar.gz
.
File metadata
- Download URL: pytest_rst-0.1.2.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 | 586ec607e567642b8babe81b43c1ba10c7ca7a366e9f1e8b2a8fab0111f5b0d9 |
|
MD5 | 3d3d59a11f1c29033838505454bb2c49 |
|
BLAKE2b-256 | a5e5145ac446404ac5d2ca67a8072e72d153b7e455a605dcf6c088da483eb52f |
File details
Details for the file pytest_rst-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: pytest_rst-0.1.2-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 | 7a26bf1868911df7ad2cbe4dfef27ab5fe4d6852dabbffc1eb5675f511f99912 |
|
MD5 | 48166185d7b2e7b940bfe26851c6eadf |
|
BLAKE2b-256 | 422b9f88aad33d1ac9a31e73240123ee7eb2a2f7815f34777f15ab5c5b39f946 |