mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-25 00:36:55 +02:00
update roles ut
This commit is contained in:
parent
e8ab02b203
commit
991e49e2d1
1 changed files with 3 additions and 7 deletions
|
|
@ -7,20 +7,16 @@
|
|||
"""
|
||||
from pathlib import Path
|
||||
from typing import List
|
||||
import json
|
||||
|
||||
import pytest
|
||||
from pydantic import BaseModel, Field
|
||||
from unittest.mock import AsyncMock, MagicMock
|
||||
|
||||
from metagpt.actions import DebugError, RunCode, WriteTest, UserRequirement
|
||||
from metagpt.actions.summarize_code import SummarizeCode
|
||||
from metagpt.actions.prepare_documents import PrepareDocuments
|
||||
from metagpt.environment import Environment
|
||||
from metagpt.roles import QaEngineer
|
||||
from metagpt.schema import Message, AIMessage, Document, RunCodeContext, TestingContext
|
||||
from metagpt.utils.common import any_to_str, aread, awrite
|
||||
from metagpt.utils.project_repo import ProjectRepo
|
||||
from metagpt.schema import Message, AIMessage, Document, RunCodeContext
|
||||
from metagpt.utils.common import any_to_str, awrite
|
||||
|
||||
|
||||
class MockProjectRepo:
|
||||
|
|
@ -220,4 +216,4 @@ async def test_qa_full_workflow(tmp_path):
|
|||
env.msgs.clear()
|
||||
role.test_round_allowed = 1
|
||||
rsp = await role.run(with_message=msg)
|
||||
assert "Exceeding" in rsp.content
|
||||
assert "Exceeding" in rsp.content
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue