MCPcopy Create free account
hub / github.com/grapeot/devin.cursorrules / test_fetch_page

Method test_fetch_page

tests/test_web_scraper.py:90–96  ·  view source on GitHub ↗

Test fetching a single page.

(self)

Source from the content-addressed store, hash-verified

88 self.assertIn("Unclosed paragraph", result)
89
90 async def test_fetch_page(self):
91 """Test fetching a single page."""
92 with patch('aiohttp.ClientSession') as mock_session:
93 mock_session.return_value = self.mock_client_session
94 content = await fetch_page("http://example.com", self.mock_session)
95 self.assertEqual(content, "Test content")
96 self.mock_session.get.assert_called_once_with("http://example.com")
97
98 async def test_process_urls(self):
99 """Test processing multiple URLs concurrently."""

Callers

nothing calls this directly

Calls 1

fetch_pageFunction · 0.90

Tested by

no test coverage detected