Coverage for tests/test_download.py: 100%

8 statements  

« prev     ^ index     » next       coverage.py v7.10.3, created at 2025-08-21 00:51 +0000

1from unittest.mock import AsyncMock 

2 

3import pytest 

4from faker import Faker 

5 

6from meta_tags_parser import download 

7 

8 

9@pytest.mark.asyncio 

10async def test_async_download(monkeypatch: pytest.MonkeyPatch, faker: Faker) -> None: 

11 """Run async download helper.""" 

12 monkeypatch.setattr("httpx.AsyncClient", AsyncMock) 

13 await download.download_page_async(faker.url())