Skip to content

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

fix conflicts

geekanaada81bfe6a4
diff --cc metagpt/roles/qa_engineer.py
index 42faa0cd4,45a1c7715..c73c10ef3
--- a/metagpt/roles/qa_engineer.py
+++ b/metagpt/roles/qa_engineer.py
@@@ -57,10 -65,12 +57,12 @@@ class QaEngineer(Role)
code_doc = await src_file_repo.get(filename)
if not code_doc:
continue
+ if not code_doc.filename.endswith(".py"):
+ continue
- test_doc = await tests_file_repo.get("test_" + code_doc.filename)
+ test_doc = await self.project_repo.tests.get("test_" + code_doc.filename)
if not test_doc:
test_doc = Document(
- root_path=str(tests_file_repo.root_path), filename="test_" + code_doc.filename, content=""
+ root_path=str(self.project_repo.tests.root_path), filename="test_" + code_doc.filename, content=""
)
logger.info(f"Writing {test_doc.filename}..")
context = TestingContext(filename=test_doc.filename, test_doc=test_doc, code_doc=code_doc)