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

Method test_invalid_css_selector

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

Source from the content-addressed store, hash-verified

53 self.assertIn("Unsupported extraction strategy", str(context.exception))
54
55 def test_invalid_css_selector(self):
56 with self.assertRaises(ValueError) as context:
57 self.crawler.run(url='https://www.nbcnews.com/business', css_selector="invalid_selector", bypass_cache=True)
58 self.assertIn("Invalid CSS selector", str(context.exception))
59
60
61 def test_crawl_with_cache_and_bypass_cache(self):

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected