(self)
| 43 | self.assertTrue(result.success, "Failed to crawl and extract with SlidingWindowChunking and TopicExtractionStrategy") |
| 44 | |
| 45 | def test_invalid_url(self): |
| 46 | with self.assertRaises(Exception) as context: |
| 47 | self.crawler.run(url='invalid_url', bypass_cache=True) |
| 48 | self.assertIn("Invalid URL", str(context.exception)) |
| 49 | |
| 50 | def test_unsupported_extraction_strategy(self): |
| 51 | with self.assertRaises(Exception) as context: |