Skip to content

Commit 6a11ef4

Browse files
authored
Test & typing adjustments (#337)
1 parent 5b9754b commit 6a11ef4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: tests/tests_asyncio/test_playwright_requests.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
TimeoutError as PlaywrightTimeoutError,
1515
)
1616
from scrapy import Spider, Request, FormRequest
17-
from scrapy.http import Response
1817

1918
from scrapy_playwright.handler import DEFAULT_CONTEXT_NAME
2019
from scrapy_playwright.page import PageMethod
@@ -28,7 +27,7 @@ class DialogSpider(Spider):
2827

2928
name = "dialog"
3029

31-
def parse(self, response: Response, **kwargs) -> None:
30+
def parse(self, **_kwargs) -> None:
3231
return None
3332

3433
async def handle_dialog(self, dialog: Dialog) -> None:
@@ -37,6 +36,8 @@ async def handle_dialog(self, dialog: Dialog) -> None:
3736

3837

3938
class MixinTestCase:
39+
browser_type: str
40+
4041
@pytest.fixture(autouse=True)
4142
def inject_fixtures(self, caplog):
4243
caplog.set_level(logging.DEBUG)

0 commit comments

Comments
 (0)