fix(tests): update test_generator_v2 to use new generator signatures

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-14 05:55:08 -04:00
parent afa77173e3
commit b9616de21e
+14 -6
View File
@@ -165,7 +165,8 @@ class TestBuildV2Prompt:
material = _make_material() material = _make_material()
messages, frame_paths = _build_v2_prompt( messages, frame_paths = _build_v2_prompt(
family_spec=RETRIEVAL_FAMILY, prompt_template=RETRIEVAL_FAMILY.prompt_template,
strategy_name=RETRIEVAL_FAMILY.name,
material=material, material=material,
task_type="Action Reasoning", task_type="Action Reasoning",
seq=1, seq=1,
@@ -184,7 +185,8 @@ class TestBuildV2Prompt:
material = _make_material() material = _make_material()
reject_msg = "The question leaked information from the answer options." reject_msg = "The question leaked information from the answer options."
messages, _ = _build_v2_prompt( messages, _ = _build_v2_prompt(
family_spec=RETRIEVAL_FAMILY, prompt_template=RETRIEVAL_FAMILY.prompt_template,
strategy_name=RETRIEVAL_FAMILY.name,
material=material, material=material,
task_type="Action Reasoning", task_type="Action Reasoning",
seq=2, seq=2,
@@ -201,7 +203,8 @@ class TestBuildV2Prompt:
material = _make_material(with_frames=True) material = _make_material(with_frames=True)
_, frame_paths = _build_v2_prompt( _, frame_paths = _build_v2_prompt(
family_spec=VISUAL_FAMILY, prompt_template=VISUAL_FAMILY.prompt_template,
strategy_name=VISUAL_FAMILY.name,
material=material, material=material,
task_type="Object Recognition", task_type="Object Recognition",
seq=1, seq=1,
@@ -215,7 +218,8 @@ class TestBuildV2Prompt:
material = _make_material(with_frames=False) material = _make_material(with_frames=False)
_, frame_paths = _build_v2_prompt( _, frame_paths = _build_v2_prompt(
family_spec=RETRIEVAL_FAMILY, prompt_template=RETRIEVAL_FAMILY.prompt_template,
strategy_name=RETRIEVAL_FAMILY.name,
material=material, material=material,
task_type="Action Reasoning", task_type="Action Reasoning",
seq=1, seq=1,
@@ -355,10 +359,12 @@ class TestGenerateOneV2:
vlm=mock_vlm, vlm=mock_vlm,
tree=tree, tree=tree,
material=material, material=material,
family_spec=RETRIEVAL_FAMILY,
task_type="Action Reasoning", task_type="Action Reasoning",
seq=1, seq=1,
video_id="v-001", video_id="v-001",
prompt_template=RETRIEVAL_FAMILY.prompt_template,
strategy_name=RETRIEVAL_FAMILY.name,
skill_target=RETRIEVAL_FAMILY.skill_target,
session_id="session-test-001", session_id="session-test-001",
) )
@@ -387,10 +393,12 @@ class TestGenerateOneV2:
vlm=mock_vlm, vlm=mock_vlm,
tree=tree, tree=tree,
material=material, material=material,
family_spec=RETRIEVAL_FAMILY,
task_type="Action Reasoning", task_type="Action Reasoning",
seq=2, seq=2,
video_id="v-001", video_id="v-001",
prompt_template=RETRIEVAL_FAMILY.prompt_template,
strategy_name=RETRIEVAL_FAMILY.name,
skill_target=RETRIEVAL_FAMILY.skill_target,
reject_reason="Answer was too obvious", reject_reason="Answer was too obvious",
session_id="session-test-002", session_id="session-test-002",
) )