Skip to content

Commit

Permalink
pylint adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
elacuesta committed Aug 16, 2023
1 parent bb20997 commit fbef939
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tests/tests_asyncio/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit fbef939

Please sign in to comment.