Skip to content

Commit

Permalink
remove get_result method and improve gpt_v_generator.py and test_gpt_…
Browse files Browse the repository at this point in the history
…v_generator.py.
  • Loading branch information
mannaandpoem committed Feb 5, 2024
1 parent 6015c16 commit 5abde78
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/metagpt/tools/libs/test_gpt_v_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def image_path():


@pytest.mark.asyncio
async def test_generate_webpages_with_suffix_s(mock_webpage_filename_with_styles_and_scripts, image_path):
async def test_generate_webpages_with_styles_and_scripts(mock_webpage_filename_with_styles_and_scripts, image_path):
generator = GPTvGenerator()
rsp = await generator.generate_webpages(image_path=image_path)
logs.logger.info(rsp)
Expand All @@ -57,7 +57,7 @@ async def test_generate_webpages_with_suffix_s(mock_webpage_filename_with_styles


@pytest.mark.asyncio
async def test_generate_webpages_without_suffix_s(mock_webpage_filename_with_style_and_script, image_path):
async def test_generate_webpages_with_style_and_script(mock_webpage_filename_with_style_and_script, image_path):
generator = GPTvGenerator()
rsp = await generator.generate_webpages(image_path=image_path)
logs.logger.info(rsp)
Expand All @@ -67,7 +67,7 @@ async def test_generate_webpages_without_suffix_s(mock_webpage_filename_with_sty


@pytest.mark.asyncio
async def test_save_webpages_with_suffix_s(mock_webpage_filename_with_styles_and_scripts, image_path):
async def test_save_webpages_with_styles_and_scripts(mock_webpage_filename_with_styles_and_scripts, image_path):
generator = GPTvGenerator()
webpages = await generator.generate_webpages(image_path)
webpages_dir = generator.save_webpages(image_path=image_path, webpages=webpages)
Expand All @@ -76,7 +76,7 @@ async def test_save_webpages_with_suffix_s(mock_webpage_filename_with_styles_and


@pytest.mark.asyncio
async def test_save_webpages_without_suffix_s(mock_webpage_filename_with_style_and_script, image_path):
async def test_save_webpages_with_style_and_script(mock_webpage_filename_with_style_and_script, image_path):
generator = GPTvGenerator()
webpages = await generator.generate_webpages(image_path)
webpages_dir = generator.save_webpages(image_path=image_path, webpages=webpages)
Expand Down

0 comments on commit 5abde78

Please sign in to comment.