This commit is contained in:
geekan 2024-01-10 22:02:44 +08:00
parent 8af1488613
commit 4de8fa3682
15 changed files with 33 additions and 24 deletions

View file

@ -43,7 +43,7 @@ class ProductManager(Role):
self._set_state(1)
else:
self._set_state(0)
self.context.config.git_reinit = False
self.config.git_reinit = False
self.todo_action = any_to_name(WritePRD)
return bool(self.rc.todo)

View file

@ -17,7 +17,6 @@
from metagpt.actions import DebugError, RunCode, WriteTest
from metagpt.actions.summarize_code import SummarizeCode
from metagpt.config2 import Config
from metagpt.const import (
MESSAGE_ROUTE_TO_NONE,
TEST_CODES_FILE_REPO,
@ -48,10 +47,6 @@ class QaEngineer(Role):
self._watch([SummarizeCode, WriteTest, RunCode, DebugError])
self.test_round = 0
@property
def config(self) -> Config:
return self.context.config
async def _write_test(self, message: Message) -> None:
src_file_repo = self.context.git_repo.new_file_repository(self.context.src_workspace)
changed_files = set(src_file_repo.changed_files.keys())