()
| 12 | |
| 13 | @pytest.mark.asyncio |
| 14 | async def test_word_count_threshold(): |
| 15 | async with AsyncWebCrawler(verbose=True) as crawler: |
| 16 | url = "https://www.nbcnews.com/business" |
| 17 | result_no_threshold = await crawler.arun(url=url, word_count_threshold=0, bypass_cache=True) |
| 18 | result_with_threshold = await crawler.arun(url=url, word_count_threshold=50, bypass_cache=True) |
| 19 | |
| 20 | assert len(result_no_threshold.markdown) > len(result_with_threshold.markdown) |
| 21 | |
| 22 | @pytest.mark.asyncio |
| 23 | async def test_css_selector(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…