Skip to content

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

feat: +unit test

莘权 马884bac758a43
diff --git a/.gitignore b/.gitignore
index 67c2fa316..05158cca2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -167,3 +167,4 @@ tmp.png
.dependencies.json
tests/metagpt/utils/file_repo_git
*.tmp
+*.png
diff --git a/tests/metagpt/roles/test_assistant.py b/tests/metagpt/roles/test_assistant.py
index 164aba5dc..4d426ff45 100644
--- a/tests/metagpt/roles/test_assistant.py
+++ b/tests/metagpt/roles/test_assistant.py
@@ -36,7 +36,7 @@ async def test_run():
{
"content": "who is tulin",
"role": "user",
- "id": 1,
+ "id": "1",
},
{"content": "The one who eaten a poison apple.", "role": "assistant"},
],
@@ -53,7 +53,7 @@ async def test_run():
{
"content": "can you draw me an picture?",
"role": "user",
- "id": 1,
+ "id": "1",
},
{"content": "Yes, of course. What do you want me to draw", "role": "assistant"},
],