claude-code-sdk-python/tests
Claude 5df105d623
test: add tests for can_use_tool callback features (issue #159)
- Add test for PermissionResultAllow with updatedPermissions support
- Add test for PermissionResultDeny with interrupt flag (deny and stop)
- Add test for PermissionResultDeny without interrupt (deny and continue)
- Export PermissionRuleValue type for creating permission updates

These tests verify the can_use_tool callback correctly handles:
1. The behavior/updatedInput field names (not allow/input)
2. The updatedPermissions field for "Always Allow" functionality
3. The interrupt flag for stopping vs continuing after denial

Fixes #159
2025-12-17 12:28:34 +00:00
..
conftest.py Initial Python SDK import 2025-06-12 00:16:19 -07:00
test_changelog.py Add changelog and changelog format check (#77) 2025-07-21 10:53:01 -07:00
test_client.py Rename claude_code to claude_agent (#188) 2025-09-28 14:52:53 -07:00
test_errors.py Rename claude_code to claude_agent (#188) 2025-09-28 14:52:53 -07:00
test_integration.py feat: add max_budget_usd option to Python SDK (#293) 2025-10-30 16:45:35 -07:00
test_message_parser.py Add UUID to UserMessage response type to improve devX for rewind (#418) 2025-12-15 09:03:58 -08:00
test_sdk_mcp_integration.py feat: Added base64 image handling to sdk_mcp_server tool calling (#175) 2025-10-15 07:22:14 -07:00
test_streaming_client.py Fix Windows test failures due to path separator issues (#219) 2025-10-07 16:18:30 -07:00
test_subprocess_buffering.py feat: add cli_path support to ClaudeAgentOptions (#235) 2025-10-12 23:19:53 -07:00
test_tool_callbacks.py test: add tests for can_use_tool callback features (issue #159) 2025-12-17 12:28:34 +00:00
test_transport.py fix: add write lock to prevent concurrent transport writes (#391) 2025-12-04 14:27:01 -08:00
test_types.py Update model references to claude-sonnet-4-5 (#198) 2025-09-30 12:59:14 -07:00