From 9604dec795e73a3b1ee8f878b75913a969ac4753 Mon Sep 17 00:00:00 2001 From: better629 Date: Wed, 27 Mar 2024 16:57:01 +0800 Subject: [PATCH] rename tests --- .../andriod_assistant/tests/{test_for_an.py => test_an.py} | 0 .../tests/{test.py => test_imgs_analysis.py} | 7 ++----- 2 files changed, 2 insertions(+), 5 deletions(-) rename examples/andriod_assistant/tests/{test_for_an.py => test_an.py} (100%) rename examples/andriod_assistant/tests/{test.py => test_imgs_analysis.py} (94%) diff --git a/examples/andriod_assistant/tests/test_for_an.py b/examples/andriod_assistant/tests/test_an.py similarity index 100% rename from examples/andriod_assistant/tests/test_for_an.py rename to examples/andriod_assistant/tests/test_an.py diff --git a/examples/andriod_assistant/tests/test.py b/examples/andriod_assistant/tests/test_imgs_analysis.py similarity index 94% rename from examples/andriod_assistant/tests/test.py rename to examples/andriod_assistant/tests/test_imgs_analysis.py index 4b3e0af88..38e02acaf 100644 --- a/examples/andriod_assistant/tests/test.py +++ b/examples/andriod_assistant/tests/test_imgs_analysis.py @@ -28,11 +28,9 @@ RECORD_PATH = TASK_PATH.joinpath("record.txt") TASK_DESC_PATH = TASK_PATH.joinpath("task_desc.txt") DOCS_DIR = TASK_PATH.joinpath("storage") -testaction = Action(name="test") +test_action = Action(name="test") -# TODO test for parse record -# 仅使用一张图像进行测试 async def manual_test(): img_before_base64 = encode_image(TEST_BEFORE_PATH) img_after_base64 = encode_image(TEST_AFTER_PATH) @@ -90,10 +88,9 @@ async def manual_test(): logger.info(f"Waiting for GPT-4V to generate documentation for the element {resource_id}") node = await RECORD_PARSE_NODE.fill( - context=context, llm=testaction.llm, images=[img_before_base64, img_after_base64] + context=context, llm=test_action.llm, images=[img_before_base64, img_after_base64] ) - # log_path = task_dir.joinpath(f"log_{app_name}_{demo_name}.txt") node.compile(context=context, schema="json", mode="auto") msg = node.content doc_content[action_type] = msg