mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-27 14:25:20 +02:00
add ut to check code saving
This commit is contained in:
parent
ee4aba206e
commit
ea6c440294
2 changed files with 10 additions and 0 deletions
|
|
@ -17,3 +17,7 @@ async def test_code_interpreter(mocker, auto_run):
|
|||
rsp = await ci.run(requirement)
|
||||
logger.info(rsp)
|
||||
assert len(rsp.content) > 0
|
||||
|
||||
finished_tasks = ci.planner.plan.get_finished_tasks()
|
||||
assert len(finished_tasks) > 0
|
||||
assert len(finished_tasks[0].code) > 0 # check one task to see if code is recorded
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue