Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest_ipso-0.1.2.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytest_ipso-0.1.2-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

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

Hashes for pytest_ipso-0.1.2.tar.gz
Algorithm Hash digest
SHA256 192658a082910df62219a764e5042be6ecbcecf610ae5010a69e99a6ff2596c8
MD5 f49ab900e57b57e70ad8080b82589ce5
BLAKE2b-256 c8acea24e55aa0e9376922a3e1916876d657053235d757e04b11cfdfca35aa99

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for pytest_ipso-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9b6ccefe89c5253abdf9dd71a027992c530e6ee2ca0fc07873d7b50cf74795fb
MD5 7b42f5213833723b9e5e2e016c162ed6
BLAKE2b-256 aea38e53fd2ebc9c18613cc08e078688007bb2d48884160be77346642ded92c4

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page