Skip to content

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

Stop generating unit test for non python files

Arnaud Gelasb4e09341b354
diff --git a/metagpt/roles/qa_engineer.py b/metagpt/roles/qa_engineer.py
index 0e323893e..45a1c7715 100644
--- a/metagpt/roles/qa_engineer.py
+++ b/metagpt/roles/qa_engineer.py
@@ -65,6 +65,8 @@ 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)
if not test_doc:
test_doc = Document(