Skip to content

Commit

Permalink
simplify save_webpages in gpt_v_generator.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mannaandpoem committed Mar 11, 2024
1 parent 478ba13 commit 363c1b7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/metagpt/tools/libs/test_gpt_v_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ async def test_save_webpages_with_styles_and_scripts(mock_webpage_filename_with_
webpages_dir = generator.save_webpages(webpages=webpages, save_folder_name="test_1")
logs.logger.info(webpages_dir)
assert webpages_dir.exists()
assert (webpages_dir / "index.html").exists()
assert (webpages_dir / "styles.css").exists()
assert (webpages_dir / "scripts.js").exists()


@pytest.mark.asyncio
Expand All @@ -72,6 +75,9 @@ async def test_save_webpages_with_style_and_script(mock_webpage_filename_with_st
webpages_dir = generator.save_webpages(webpages=webpages, save_folder_name="test_2")
logs.logger.info(webpages_dir)
assert webpages_dir.exists()
assert (webpages_dir / "index.html").exists()
assert (webpages_dir / "style.css").exists()
assert (webpages_dir / "script.js").exists()


@pytest.mark.asyncio
Expand Down

0 comments on commit 363c1b7

Please sign in to comment.