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

Method test_invalid_url

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

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected