Write language-agnostic unit tests in Markdown. Run them in pytest.
Project description
TestMark (Pytest Adapter)
Minimal Python adapter around the Node testmark parser.
Requirements
- Python 3.8+
- Node.js and the global
testmarkCLI from npm (npm i -g testmark)
Usage
Pytest adapter:
from testmark import testmark
from slugify import slugify
testmark('examples/slugify.test.md', slugify)
How it works
The Python package defers to the Node CLI for parsing and expects a global testmark binary on PATH.
Running Tests
To test the Python adapter:
cd adapters/pytest
uv sync # Install venv/pytest
uv run pytest
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
testmark_pytest-0.0.1.tar.gz
(2.7 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 testmark_pytest-0.0.1.tar.gz.
File metadata
- Download URL: testmark_pytest-0.0.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76322b096175cf7a70331e4b652130cd7791f9e147c93d98ba3fc03c1c3ac8d8
|
|
| MD5 |
b397c24711ef453c0c9aa5963b69802a
|
|
| BLAKE2b-256 |
2e992a4fa361fbb3a509e2107974d1b7b2044b3e428e41335ee7adf191aa86b4
|
File details
Details for the file testmark_pytest-0.0.1-py3-none-any.whl.
File metadata
- Download URL: testmark_pytest-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
799a5c773b4362ca4b3b11daa2db252475d4c1eebd3fbde2d4323afbd8c6d105
|
|
| MD5 |
212f8f52488f42ee29022fd78a4f4bb4
|
|
| BLAKE2b-256 |
0e16f0c341b2c5646e11c339649fbd1649302fee493c2206ba8c34770aab2782
|