langgraph/libs/sdk-py/tests
Sera 37becf152a
fix(sdk-py): publish integration progress events on a named channel (#9746)
`sdk-py integration` fails on `main` (`test_extensions`: `unexpected
step sequence: []`). It started with `langgraph-api` 0.20.0.dev2 in the
`latest-py3.12` image, not #9728. That version wraps
`get_stream_writer()` data as `custom` events with `{"payload": ...}`
and no `name`, so `custom:progress` matches nothing.

## Changes
- The test graph relays root-level `progress` writes onto a named
`StreamChannel("progress")`, which the server delivers as
`custom:progress`.
- The extensions test and script read each event's `payload`.

## Reviewer notes
- The last real pass was Nov 15 (image on 0.20.0.dev1). Runs since then
either skipped the job (path filter) or failed.
- The Python SDK's `thread.extensions[name]` yields the `{name,
payload}` envelope; JS yields `payload`. That parity gap is separate.

## Test Plan
- [x] Integration suite against `langgraph dev` with `langgraph-api`
0.20.0.dev4 and local langgraph: 55 passed (2 failed before)

[no screenshot]

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2026-11-19 18:00:08 -05:00
..
fixtures fix: Ensure SSE streams flush trailing events (#6155) 2025-09-16 16:25:47 +01:00
integration fix(sdk-py): publish integration progress events on a named channel (#9746) 2026-11-19 18:00:08 -05:00
streaming chore(deps-dev): bump dotenv from 17.4.2 to 18.0.4 in /libs/cli/js-examples in the major group (#9154) 2026-10-18 00:49:00 +00:00
conftest.py fix(sdk-py): retry runs.wait, join and cancel(wait=True) reconnects with backoff (#9481) 2026-10-28 18:55:31 -04:00
test_api_parity.py feat(sdk-py): add strict_resume to runs.create, stream and wait (#9599) 2026-11-05 11:15:21 -05:00
test_assistants_client.py feat: Include pagination in assistants search response (#6526) 2025-12-01 20:18:26 -08:00
test_auth.py fix(sdk-py): match Auth.on overload to optional resources (#9450) 2026-10-27 14:34:20 -07:00
test_cache.py release(sdk-py): 0.3.12 (#7224) 2026-03-18 15:13:58 -07:00
test_client_exports.py chore: Re-organize client files. (#6787) 2026-02-12 17:22:59 -05:00
test_client_stream.py fix(sdk-py): rejoin a run stream that closes before the run ends (#9554) 2026-11-02 19:57:22 +00:00
test_crons_client.py fix(sdk-py): support clearing cron end_time via update(end_time=None) (#8334) 2026-07-14 11:09:58 -04:00
test_encryption.py feat(sdk-py): add decrypt replacement result (#8598) 2026-08-19 10:45:55 -07:00
test_errors.py chore: state_updated_at sort by (#6857) 2026-02-18 10:41:23 -08:00
test_langsmith_tracing.py chore: enforce PLC0415 in tests for the remaining packages (#8547) 2026-08-07 09:40:18 -04:00
test_path_encoding.py chore: enforce PLC0415 in tests for the remaining packages (#8547) 2026-08-07 09:40:18 -04:00
test_priority.py feat(sdk-py): remove fairness_weight from PrioritySettings (#9441) 2026-11-03 01:03:26 +00:00
test_runs_client.py feat(sdk-py): add strict_resume to runs.create, stream and wait (#9599) 2026-11-05 11:15:21 -05:00
test_serde.py chore: enforce PLC0415 in tests for the remaining packages (#8547) 2026-08-07 09:40:18 -04:00
test_serde_schema.py chore(sdk-py): Improve type-hinting of inputs (#6480) 2025-11-24 18:29:03 -08:00
test_skip_auto_load_api_key.py feat(sdk-py): add sentinel to skip auto loading api key on sdk client create (#6500) 2025-11-25 11:10:56 -08:00
test_threads_client.py feat(sdk-py): add select to threads.get_state and get_history (#9568) 2026-11-03 23:30:34 -05:00