Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 1.3 KB

README.md

File metadata and controls

38 lines (29 loc) · 1.3 KB

Host protocol conformance tests

From the repository root, check the Python bindings and portable fixtures with:

make host-protocol-check

The suite validates against the OpenAPI document, which it asks the host protocol package to print. That needs Node and the package's one dependency.

pnpm install --filter @marimo-team/host-protocol --prod

This includes experimental fixtures. Tests that need a running host are skipped. The contributor workflow also covers TypeScript generation and package checks.

Check a running host

Start a host in a disposable workspace and pass its discovery record. The suite creates and modifies notebooks and starts and stops runtimes; you manage the host's lifecycle.

uv run --locked --project protocols/host/conformance \
  pytest -c protocols/host/conformance/pyproject.toml \
  protocols/host/conformance protocols/host/experimental \
  --record /path/to/hosts-v1/host.json

The suite skips tests for capabilities the host does not offer, so review the skipped tests. Repeat --require-operation <operation> to assert advertised operations, and use --slow to include idle ping checks. Replace --record and its path with --help for all options.