mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-28 02:23:52 +02:00
deal with nested BaseModel
This commit is contained in:
parent
15279376d4
commit
6877fa444f
4 changed files with 16 additions and 11 deletions
|
|
@ -10,6 +10,7 @@ import pytest
|
|||
from metagpt.const import SERDESER_PATH
|
||||
from metagpt.roles import ProjectManager, ProductManager, Architect
|
||||
from metagpt.team import Team
|
||||
from metagpt.logs import logger
|
||||
from tests.metagpt.serialize_deserialize.test_serdeser_base import RoleA, RoleB, RoleC, serdeser_path, ActionOK
|
||||
|
||||
|
||||
|
|
@ -120,6 +121,8 @@ async def test_team_recover_multi_roles_save():
|
|||
company.run_project(idea)
|
||||
await company.run(n_round=4)
|
||||
|
||||
logger.info("Team recovered")
|
||||
|
||||
new_company = Team.recover(stg_path)
|
||||
new_company.run_project(idea)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue