Add TaskGroup testing example for basic_task_group agent#1148
Add TaskGroup testing example for basic_task_group agent#1148
Conversation
There is a docs PR adding some guidelines for writing tests for task groups and I'd like to link to an example test.
|
|
@toubatbrian If there's another test I can refer to or update, let me know. I wanted to link to a test for an agent that we can also link to as an example usage of |
I think this one is pretty good tho, what specific format are you expecting to have? |
@toubatbrian If you think this is good, then I'll just merge it! I wanted an example that was well documented in code, and that demonstrated the best practices mentioned in the docs. Thank you! |
Description
Add a reference test file demonstrating how to test TaskGroup-based
agents using FakeLLM and the testing best practices from the docs (there
is a docs PR adding some guidelines for writing tests for task groups
and I'd like to link to an example test.)
Tests cover:
Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com
Testing