🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
feat: +acknowledge
莘权 马2363f94e8d53
diff --git a/tests/metagpt/tools/libs/test_software_development.py b/tests/metagpt/tools/libs/test_software_development.pyindex a35f40fe1..cff419f11 100644--- a/tests/metagpt/tools/libs/test_software_development.py+++ b/tests/metagpt/tools/libs/test_software_development.py@@ -1,5 +1,6 @@#!/usr/bin/env python# -*- coding: utf-8 -*-+from typing import Dictimport pytest@@ -9,6 +10,10 @@ from metagpt.schema import UserMessagefrom metagpt.tools.libs.software_development import import_git_repo+async def get_env_description() -> Dict[str, str]:+ return {'await get_env(key="access_token", app_name="github")': "get the access token for github authentication."}++@pytest.mark.skip@pytest.mark.asyncioasync def test_import_repo():@@ -31,6 +36,9 @@ async def test_git_create_issue(content: str):prerequisite = "from metagpt.tools.libs import get_env"await di.execute_code.run(code=prerequisite, language="python")+ usage = await get_env_description()+ acknowledge = [f"- You can use `{k}` to '{v}'" for k, v in usage.items()]+ content += "\n---\n## Acknowledge\n" + "\n".join(acknowledge)di.put_message(UserMessage(content=content))while not di.is_idle:await di.run()