Skip to content

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

implement test_project_management.py

geekan38f1c4f63b89
diff --git a/tests/metagpt/actions/test_project_management.py b/tests/metagpt/actions/test_project_management.py
index 13e6d2247..88263ff29 100644
--- a/tests/metagpt/actions/test_project_management.py
+++ b/tests/metagpt/actions/test_project_management.py
@@ -6,10 +6,26 @@
@File : test_project_management.py
"""
+import pytest
-class TestCreateProjectPlan:
- pass
+from metagpt.actions.project_management import WriteTasks
+from metagpt.config import CONFIG
+from metagpt.const import PRDS_FILE_REPO, SYSTEM_DESIGN_FILE_REPO
+from metagpt.logs import logger
+from metagpt.schema import Message
+from metagpt.utils.file_repository import FileRepository
+from tests.metagpt.actions.mock_json import DESIGN, PRD
-class TestAssignTasks:
- pass
+async def test_design_api():
+ await FileRepository.save_file("1.txt", content=str(PRD), relative_path=PRDS_FILE_REPO)
+ await FileRepository.save_file("1.txt", content=str(DESIGN), relative_path=SYSTEM_DESIGN_FILE_REPO)
+ logger.info(CONFIG.git_repo)
+
+ action = WriteTasks()
+
+ result = await action.run(Message(content="", instruct_content=None))
+ logger.info(result)
+
+ assert result