Test creating a Sitemap instance from an XML string.
()
| 290 | |
| 291 | |
| 292 | async def test_sitemap_from_string() -> None: |
| 293 | """Test creating a Sitemap instance from an XML string.""" |
| 294 | sitemap = await Sitemap.from_xml_string(get_basic_sitemap()) |
| 295 | |
| 296 | assert len(sitemap.urls) == 5 |
| 297 | assert set(sitemap.urls) == get_basic_results() |
| 298 | |
| 299 | |
| 300 | async def test_sitemap_fetch_retries_on_transient_error() -> None: |
nothing calls this directly
no test coverage detected