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:
Teknium 2026-08-07 09:00:03 -07:00
parent d6ee58b583
commit 0ebaa490b5
1 changed files with 8 additions and 2 deletions

View File

@ -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)