test: use valid 2-task batches in schema-rejection tests
The batch quality gate (#81141) now rejects 1-task batches before schema coercion runs; exercise schema rejection with a valid batch.
This commit is contained in:
@@ -289,7 +289,10 @@ class TestDelegateTaskDispatch:
|
||||
),
|
||||
):
|
||||
out = delegate_task(
|
||||
tasks=[{"goal": "x", "output_schema": "not-a-dict"}],
|
||||
tasks=[
|
||||
{"goal": "Summarize the release notes for module A", "output_schema": "not-a-dict"},
|
||||
{"goal": "Summarize the release notes for module B"},
|
||||
],
|
||||
parent_agent=_make_mock_parent(),
|
||||
)
|
||||
payload = json.loads(out)
|
||||
@@ -311,7 +314,10 @@ class TestDelegateTaskDispatch:
|
||||
),
|
||||
):
|
||||
out = delegate_task(
|
||||
tasks=[{"goal": "x", "output_schema": {"type": 42}}],
|
||||
tasks=[
|
||||
{"goal": "Summarize the release notes for module A", "output_schema": {"type": 42}},
|
||||
{"goal": "Summarize the release notes for module B"},
|
||||
],
|
||||
parent_agent=_make_mock_parent(),
|
||||
)
|
||||
payload = json.loads(out)
|
||||
|
||||
Reference in New Issue
Block a user