Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
elacuesta committed Jul 11, 2024
1 parent 6d23d0e commit 86ac0a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/tests_asyncio/test_playwright_requests.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import asyncio
import json
import logging
import platform
Expand Down Expand Up @@ -112,6 +113,7 @@ async def test_route_continue_exception(self, logger):
async with make_handler({"PLAYWRIGHT_BROWSER_TYPE": self.browser_type}) as handler:
scrapy_request = Request(url="https://example.org", method="GET")
spider = Spider("foo")
initial_request_done = asyncio.Event()
req_handler = handler._make_request_handler(
context_name=DEFAULT_CONTEXT_NAME,
method=scrapy_request.method,
Expand All @@ -120,6 +122,7 @@ async def test_route_continue_exception(self, logger):
body=None,
encoding="utf-8",
spider=spider,
initial_request_done=initial_request_done,
)
route = MagicMock()
playwright_request = AsyncMock()
Expand Down

0 comments on commit 86ac0a4

Please sign in to comment.