🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
refactor: delete useless codes
莘权 马6d77cd89c86c
diff --git a/metagpt/roles/qa_engineer.py b/metagpt/roles/qa_engineer.pyindex 7a2b7cbd4..6f0738294 100644--- a/metagpt/roles/qa_engineer.py+++ b/metagpt/roles/qa_engineer.py@@ -15,7 +15,7 @@ from metagpt.const import OUTPUTS_FILE_REPO, TEST_CODES_FILE_REPOfrom metagpt.logs import loggerfrom metagpt.roles import Rolefrom metagpt.schema import Document, Message, RunCodeContext, TestingContext-from metagpt.utils.common import CodeParser, any_to_str_set+from metagpt.utils.common import any_to_str_setclass QaEngineer(Role):@@ -35,12 +35,6 @@ class QaEngineer(Role):self.test_round = 0self.test_round_allowed = test_round_allowed- @classmethod- def parse_workspace(cls, system_design_msg: Message) -> str:- if system_design_msg.instruct_content:- return system_design_msg.instruct_content.dict().get("Python package name")- return CodeParser.parse_str(block="Python package name", text=system_design_msg.content)-async def _write_test(self, message: Message) -> None:changed_files = message.content.splitlines()src_file_repo = CONFIG.git_repo.new_file_repository(CONFIG.src_workspace)diff --git a/metagpt/roles/role.py b/metagpt/roles/role.pyindex d1e65a4e0..2e3bcbbd5 100644--- a/metagpt/roles/role.py+++ b/metagpt/roles/role.py@@ -164,10 +164,6 @@ class Role:if env:env.set_subscription(self, self._subscription)- def get_env(self):- """Return the environment in which the role works."""- return self._rc.env-@propertydef profile(self):"""Get the role description (position)"""