Fix integration test: assign generated body to draft.code before materializing
This commit is contained in:
@@ -177,6 +177,7 @@ def test_generate_skill_body_codegen(tmp_path):
|
|||||||
tree,
|
tree,
|
||||||
)
|
)
|
||||||
print(f"generated {len(code)} bytes of skill body")
|
print(f"generated {len(code)} bytes of skill body")
|
||||||
|
draft.code = code
|
||||||
store = SkillBodyStore(str(tmp_path / "skills"))
|
store = SkillBodyStore(str(tmp_path / "skills"))
|
||||||
skill = materialize_skill(draft, "tracking", store)
|
skill = materialize_skill(draft, "tracking", store)
|
||||||
assert callable(skill.predict) and callable(skill.act)
|
assert callable(skill.predict) and callable(skill.act)
|
||||||
|
|||||||
Reference in New Issue
Block a user