mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-20 15:38:09 +02:00
just use deserialize instead of recover
This commit is contained in:
parent
6877fa444f
commit
0543c0f76b
2 changed files with 3 additions and 3 deletions
|
|
@ -89,7 +89,7 @@ async def test_team_recover_save():
|
|||
company.run_project(idea)
|
||||
await company.run(n_round=4)
|
||||
|
||||
new_company = Team.recover(stg_path)
|
||||
new_company = Team.deserialize(stg_path)
|
||||
new_role_c = new_company.env.get_role(role_c.profile)
|
||||
# assert new_role_c._rc.memory == role_c._rc.memory
|
||||
assert new_role_c._rc.env != role_c._rc.env
|
||||
|
|
@ -123,7 +123,7 @@ async def test_team_recover_multi_roles_save():
|
|||
|
||||
logger.info("Team recovered")
|
||||
|
||||
new_company = Team.recover(stg_path)
|
||||
new_company = Team.deserialize(stg_path)
|
||||
new_company.run_project(idea)
|
||||
|
||||
assert new_company.env.get_role(role_b.profile)._rc.state == 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue