diff --git a/tests/tests_asyncio/test_playwright_requests.py b/tests/tests_asyncio/test_playwright_requests.py index 379c6bd3..61ffa97a 100644 --- a/tests/tests_asyncio/test_playwright_requests.py +++ b/tests/tests_asyncio/test_playwright_requests.py @@ -14,7 +14,6 @@ TimeoutError as PlaywrightTimeoutError, ) from scrapy import Spider, Request, FormRequest -from scrapy.http import Response from scrapy_playwright.handler import DEFAULT_CONTEXT_NAME from scrapy_playwright.page import PageMethod @@ -28,7 +27,7 @@ class DialogSpider(Spider): name = "dialog" - def parse(self, response: Response, **kwargs) -> None: + def parse(self, **_kwargs) -> None: return None async def handle_dialog(self, dialog: Dialog) -> None: @@ -37,6 +36,8 @@ async def handle_dialog(self, dialog: Dialog) -> None: class MixinTestCase: + browser_type: str + @pytest.fixture(autouse=True) def inject_fixtures(self, caplog): caplog.set_level(logging.DEBUG)