deerflow2/tests/unit/server
Willem Jiang c36ab393f1
fix: update Interrupt object attribute access for LangGraph 1.0+ (#730) (#731)
* Update uv.lock to sync with pyproject.toml

* fix: update Interrupt object attribute access for LangGraph 1.0+ (#730)

The Interrupt class in LangGraph 1.0 no longer has the 'ns' attribute.
This change updates _create_interrupt_event() to use the new 'id'
attribute instead, with a fallback to thread_id for compatibility.

Changes:
- Replace event_data["__interrupt__"][0].ns[0] with interrupt.id
- Use getattr() with fallback for backward compatibility
- Update debug log message from 'ns=' to 'id='
- Add unit tests for _create_interrupt_event function

* fix the unit test error and address review comment

---------

Co-authored-by: Willem Jiang <143703838+willem-bd@users.noreply.github.com>
2025-12-02 11:16:00 +08:00
..
test_app.py fix: update Interrupt object attribute access for LangGraph 1.0+ (#730) (#731) 2025-12-02 11:16:00 +08:00
test_chat_request.py feat: 1. replace black with ruff for fomatting and sort import (#489) 2025-08-17 22:57:23 +08:00
test_mcp_request.py feat: 1. replace black with ruff for fomatting and sort import (#489) 2025-08-17 22:57:23 +08:00
test_mcp_utils.py fix: env parameters exception when configuring SSE or HTTP MCP server (#513) 2025-08-20 17:23:57 +08:00
test_tool_call_chunks.py security: add log injection attack prevention with input sanitization (#667) 2025-10-27 20:57:23 +08:00