Skip to content

Commit 9df606f

Browse files
committed
fix tests
1 parent a2ec2bd commit 9df606f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/async/test_browsercontext_route.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ async def test_should_override_post_body_with_empty_string(
331331
),
332332
)
333333

334-
assert req[0].post_body == ""
334+
assert req[0].post_body == b""
335335

336336

337337
async def test_should_chain_fallback(

tests/async/test_har.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -651,9 +651,9 @@ async def test_should_update_har_zip_for_context(
651651
async def test_page_unroute_all_should_stop_page_route_from_har(
652652
context_factory: Callable[[], Awaitable[BrowserContext]],
653653
server: Server,
654-
asset: Path,
654+
assetdir: Path,
655655
) -> None:
656-
har_path = asset / "har-fulfill.har"
656+
har_path = assetdir / "har-fulfill.har"
657657
context1 = await context_factory()
658658
page1 = await context1.new_page()
659659
# The har file contains requests for another domain, so the router
@@ -670,9 +670,9 @@ async def test_page_unroute_all_should_stop_page_route_from_har(
670670
async def test_context_unroute_call_should_stop_context_route_from_har(
671671
context_factory: Callable[[], Awaitable[BrowserContext]],
672672
server: Server,
673-
asset: Path,
673+
assetdir: Path,
674674
) -> None:
675-
har_path = asset / "har-fulfill.har"
675+
har_path = assetdir / "har-fulfill.har"
676676
context1 = await context_factory()
677677
page1 = await context1.new_page()
678678
# The har file contains requests for another domain, so the router

0 commit comments

Comments
 (0)