From fbef93922e1839c465dfee0eaf0d200a85562bb9 Mon Sep 17 00:00:00 2001 From: Eugenio Lacuesta Date: Tue, 15 Aug 2023 22:56:42 -0300 Subject: [PATCH] pylint adjustments --- tests/tests_asyncio/test_utils.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/tests_asyncio/test_utils.py b/tests/tests_asyncio/test_utils.py index 860501d..5ecfdee 100644 --- a/tests/tests_asyncio/test_utils.py +++ b/tests/tests_asyncio/test_utils.py @@ -17,8 +17,6 @@ def inject_fixtures(self, caplog): @pytest.mark.asyncio async def test_get_page_content_ok(self): - from unittest.mock import AsyncMock - expected_content = "lorem ipsum" page = AsyncMock() page.content.return_value = expected_content @@ -54,8 +52,6 @@ async def test_get_page_content_retry_known_exception(self): @pytest.mark.asyncio async def test_get_page_content_reraise_unknown_exception(self): - from unittest.mock import AsyncMock - expected_exception_message = "nope" page = AsyncMock() page.content.side_effect = PlaywrightError(expected_exception_message)