()
| 31 | |
| 32 | @pytest.mark.asyncio |
| 33 | async def test_multiple_urls(): |
| 34 | async with AsyncWebCrawler(verbose=True) as crawler: |
| 35 | urls = [ |
| 36 | "https://www.nbcnews.com/business", |
| 37 | "https://www.example.com", |
| 38 | "https://www.python.org" |
| 39 | ] |
| 40 | results = await crawler.arun_many(urls=urls, bypass_cache=True) |
| 41 | assert len(results) == len(urls) |
| 42 | assert all(result.success for result in results) |
| 43 | assert all(result.html for result in results) |
| 44 | |
| 45 | @pytest.mark.asyncio |
| 46 | async def test_javascript_execution(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…