()
| 65 | |
| 66 | @pytest.mark.asyncio |
| 67 | async def test_extract_metadata(): |
| 68 | async with AsyncWebCrawler(verbose=True) as crawler: |
| 69 | url = "https://www.nbcnews.com/business" |
| 70 | result = await crawler.arun(url=url, bypass_cache=True) |
| 71 | assert result.success |
| 72 | assert result.metadata |
| 73 | metadata = result.metadata |
| 74 | assert isinstance(metadata, dict) |
| 75 | assert "title" in metadata |
| 76 | assert isinstance(metadata["title"], str) |
| 77 | |
| 78 | @pytest.mark.asyncio |
| 79 | async def test_css_selector_extraction(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…