(self)
| 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): |