Skip to content

Commit

Permalink
Test & typing adjustments (#337)
Browse files Browse the repository at this point in the history
  • Loading branch information
elacuesta authored Feb 14, 2025
1 parent 5b9754b commit 6a11ef4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/tests_asyncio/test_playwright_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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)
Expand Down

0 comments on commit 6a11ef4

Please sign in to comment.