From 884bac758a431202632d41526bb379184727c19c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8E=98=E6=9D=83=20=E9=A9=AC?= Date: Thu, 28 Dec 2023 22:20:48 +0800 Subject: [PATCH] feat: +unit test --- .gitignore | 1 + tests/metagpt/roles/test_assistant.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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"}, ],