MCPcopy
hub / github.com/unclecode/crawl4ai / test_run_default_strategies

Method test_run_default_strategies

tests/test_web_crawler.py:15–22  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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'

Callers

nothing calls this directly

Calls 3

RegexChunkingClass · 0.90
CosineStrategyClass · 0.90
runMethod · 0.45

Tested by

no test coverage detected