import pytest

from griptape.artifacts import ListArtifact


class TestWebScraper:
    @pytest.fixture()
    def scraper(self):
        from griptape.tools import WebScraperTool

        return WebScraperTool()

    def test_get_content(self, scraper):
        assert isinstance(
            scraper.get_content({"values": {"url": "https://github.com/griptape-ai/griptape"}}), ListArtifact
        )
