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.5.tar.gz
(4.1 kB
view details)
Built Distribution
File details
Details for the file pytest-rst-0.0.5.tar.gz
.
File metadata
- Download URL: pytest-rst-0.0.5.tar.gz
- Upload date:
- Size: 4.1 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 | 0a6d12fd21e49cbb6802a04a167a0373cfda1f8bfac5356d55807a47c1b85a6d |
|
MD5 | 139f5c847d08c162c946ddafd14b47a0 |
|
BLAKE2b-256 | b285588582805b40ed461cf28da9c67cc546d0dbfb288539c6ea7f55964b70f8 |
File details
Details for the file pytest_rst-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: pytest_rst-0.0.5-py3-none-any.whl
- Upload date:
- Size: 4.1 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 | d79b235a0775a6f7cbadaf8389ee11b45c486d1d1b2486ddf098c61b0542fc37 |
|
MD5 | 06ddfb6227f28ae76d333feebbd70906 |
|
BLAKE2b-256 | 4ec4888fd061e3ea56a122d59576ceaf3fe753a66e29265962d7d059f09ad37b |