diff --git a/libs/community/tests/unit_tests/document_loaders/test_web_base.py b/libs/community/tests/unit_tests/document_loaders/test_web_base.py index 529c19b4c1f4b6..a2b4df4ecf43f7 100644 --- a/libs/community/tests/unit_tests/document_loaders/test_web_base.py +++ b/libs/community/tests/unit_tests/document_loaders/test_web_base.py @@ -64,7 +64,7 @@ def test_lazy_load(mock_get: Any) -> None: @pytest.mark.requires("bs4") @patch("aiohttp.ClientSession.get") -def test_aload(mock_get: Any) -> None: +async def test_aload(mock_get: Any) -> None: async def mock_text() -> str: return "

Test content

" @@ -76,7 +76,7 @@ async def mock_text() -> str: web_paths=["https://www.example.com"], header_template={"User-Agent": "test-user-agent"}, ) - results = loader.aload() + results = await loader.aload() assert len(results) == 1 assert results[0].page_content == "Test content" mock_get.assert_called_with(