(self)
| 13 | self.assertTrue(self.crawler.ready, "WebCrawler failed to warm up") |
| 14 | |
| 15 | def test_run_default_strategies(self): |
| 16 | result = self.crawler.run( |
| 17 | url='https://www.nbcnews.com/business', |
| 18 | word_count_threshold=5, |
| 19 | chunking_strategy=RegexChunking(), |
| 20 | extraction_strategy=CosineStrategy(), bypass_cache=True |
| 21 | ) |
| 22 | self.assertTrue(result.success, "Failed to crawl and extract using default strategies") |
| 23 | |
| 24 | def test_run_different_strategies(self): |
| 25 | url = 'https://www.nbcnews.com/business' |
nothing calls this directly
no test coverage detected