()
| 22 | |
| 23 | @pytest.mark.asyncio |
| 24 | async def test_extract_cleaned_html(): |
| 25 | async with AsyncWebCrawler(verbose=True) as crawler: |
| 26 | url = "https://www.nbcnews.com/business" |
| 27 | result = await crawler.arun(url=url, bypass_cache=True) |
| 28 | assert result.success |
| 29 | assert result.cleaned_html |
| 30 | assert isinstance(result.cleaned_html, str) |
| 31 | assert len(result.cleaned_html) > 0 |
| 32 | |
| 33 | @pytest.mark.asyncio |
| 34 | async def test_extract_media(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…