claude-code-sdk-python/tests
Suzanne Wang f794e17e78
Some checks failed
Lint / lint (push) Has been cancelled
Test / test (3.10) (push) Has been cancelled
Test / test (3.11) (push) Has been cancelled
Test / test (3.12) (push) Has been cancelled
Test / test (3.13) (push) Has been cancelled
Add support for custom env vars (#131)
## Key changes
- Adds env field to `ClaudeCodeOptions`, allowing custom env vars to cli
- Updates tests and examples

## Motivation
Bringing Python SDK to feature parity with TS SDK, which supports custom
env vars

## Notes
- Environment variables are merged in order: system env → user env → SDK
required vars
- This implementation seems slightly more robust than the TypeScript
version, which can exclude OS envs vars if a user passes a minimal env
object
- Some linting changes seem to have been picked up
2025-08-25 14:02:03 -07: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 fix: add support for thinking content blocks (#28) 2025-08-06 19:00:02 -07:00
test_errors.py Initial Python SDK import 2025-06-12 00:16:19 -07:00
test_integration.py fix: add support for thinking content blocks (#28) 2025-08-06 19:00:02 -07:00
test_message_parser.py Move thinking block parsing from user to assistant messages (#119) 2025-08-19 13:36:12 -07:00
test_streaming_client.py fix: add support for thinking content blocks (#28) 2025-08-06 19:00:02 -07:00
test_subprocess_buffering.py Fix FastAPI SSE streaming compatibility (fixes #4) 2025-07-01 00:04:50 -07:00
test_transport.py Add support for custom env vars (#131) 2025-08-25 14:02:03 -07:00
test_types.py Add support for plan permission mode (#116) 2025-08-07 13:06:05 -07:00