Test fetching a single page.
(self)
| 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.""" |
nothing calls this directly
no test coverage detected