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.1.tar.gz
(3.7 kB
view details)
Built Distribution
File details
Details for the file pytest_rst-0.1.1.tar.gz
.
File metadata
- Download URL: pytest_rst-0.1.1.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 | a95675c159452ca172b63f229d01fffe9bfa1e1bda9ceb2809b1f6f38b461671 |
|
MD5 | 389d0b177c4963cfde21be797ea63054 |
|
BLAKE2b-256 | 14be8135853b2ce342fe592036532e135ecbd2a05fae64616e0ee790f77b9ad0 |
File details
Details for the file pytest_rst-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: pytest_rst-0.1.1-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 | 70fef35090a80c4e99e86fad3f0f9cbf6c633cc61fcdfdfbdf799b48204c2581 |
|
MD5 | a6a696af7faa421ce9610ed5ed5c65e9 |
|
BLAKE2b-256 | 64aa1c5e3ff7d8ab2dc82873fdd69dfa5663d894f3e48c6e52b549a169b4ed3c |