tiny fix claude agent sdk test #216
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Note
Convert Claude Agent instrumentation tests to native async tests using pytest-asyncio, removing asyncio.run wrappers and inlining async contexts/loops.
pytest.mark.asynciowithasync deftests intests/test_instrumentations/test_claude_agent/*.asyncio.run(...)wrappers with inlineasync withandasync forusage ofClaudeSDKClientand query streams.asyncioimports; addpytestimports where needed.query, aliasquery, SDK client flows, and tool interactions.Written by Cursor Bugbot for commit d41d3d8. This will update automatically on new commits. Configure here.
Important
Update test cases to use
pytest.mark.asynciofor async testing inclaude_agent_sdktests.asyncio.run()with@pytest.mark.asynciointest_claude_sdk_client.py,test_query.py,test_query_with_alias.py, andtest_tool.py.import asynciofrom all affected test files.This description was created by
for d41d3d8. You can customize this summary. It will automatically update as commits are pushed.