pytest plugin for running ipso notebook cell tests
Project description
pytest-ipso
A pytest plugin that discovers and runs ipso notebook cell tests.
How it works
ipso stores test metadata (fixtures, patches, assertions) directly on Jupyter notebook cells. This plugin collects .ipynb files, surfaces each cell that has an ipso test as a notebook.ipynb::test name item, delegates execution to the ipso CLI, and maps the results back into pytest's reporting.
Installation
pip install pytest-ipso
ipso is installed automatically as a dependency.
Usage
pytest path/to/notebook.ipynb # run cell tests in one notebook
pytest # discover .ipynb files alongside .py tests
pytest --ipso-timeout=120 # override per-cell execution timeout (default: 60s)
Each cell test runs in its own isolated kernel, so it never affects your live notebook state.
Setting up tests
Tests are stored as cell metadata, not in the notebook source. Use the ipso CLI or an AI assistant with the ipso MCP server to create and manage them. See the ipso docs for details.
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
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_ipso-0.1.2.tar.gz.
File metadata
- Download URL: pytest_ipso-0.1.2.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
192658a082910df62219a764e5042be6ecbcecf610ae5010a69e99a6ff2596c8
|
|
| MD5 |
f49ab900e57b57e70ad8080b82589ce5
|
|
| BLAKE2b-256 |
c8acea24e55aa0e9376922a3e1916876d657053235d757e04b11cfdfca35aa99
|
Provenance
The following attestation bundles were made for pytest_ipso-0.1.2.tar.gz:
Publisher:
pytest-ipso-publish.yaml on susu-dot-dev/ipso
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pytest_ipso-0.1.2.tar.gz -
Subject digest:
192658a082910df62219a764e5042be6ecbcecf610ae5010a69e99a6ff2596c8 - Sigstore transparency entry: 1174060929
- Sigstore integration time:
-
Permalink:
susu-dot-dev/ipso@c0e69e1c6e2b4cd21fe4d1334c8b3ed252d5da05 -
Branch / Tag:
refs/tags/pytest-ipso/v0.1.2 - Owner: https://github.com/susu-dot-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pytest-ipso-publish.yaml@c0e69e1c6e2b4cd21fe4d1334c8b3ed252d5da05 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pytest_ipso-0.1.2-py3-none-any.whl.
File metadata
- Download URL: pytest_ipso-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b6ccefe89c5253abdf9dd71a027992c530e6ee2ca0fc07873d7b50cf74795fb
|
|
| MD5 |
7b42f5213833723b9e5e2e016c162ed6
|
|
| BLAKE2b-256 |
aea38e53fd2ebc9c18613cc08e078688007bb2d48884160be77346642ded92c4
|
Provenance
The following attestation bundles were made for pytest_ipso-0.1.2-py3-none-any.whl:
Publisher:
pytest-ipso-publish.yaml on susu-dot-dev/ipso
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pytest_ipso-0.1.2-py3-none-any.whl -
Subject digest:
9b6ccefe89c5253abdf9dd71a027992c530e6ee2ca0fc07873d7b50cf74795fb - Sigstore transparency entry: 1174060957
- Sigstore integration time:
-
Permalink:
susu-dot-dev/ipso@c0e69e1c6e2b4cd21fe4d1334c8b3ed252d5da05 -
Branch / Tag:
refs/tags/pytest-ipso/v0.1.2 - Owner: https://github.com/susu-dot-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pytest-ipso-publish.yaml@c0e69e1c6e2b4cd21fe4d1334c8b3ed252d5da05 -
Trigger Event:
push
-
Statement type: