Skip to content

Commit 8ef47eb

Browse files
fix download test
1 parent 1170b87 commit 8ef47eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/browsing_context/test_download.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,10 @@ async def test_browsing_context_download_finished_complete(
147147
@pytest.mark.asyncio
148148
async def test_browsing_context_download_finished_canceled(
149149
websocket, test_headless_mode, url_hang_forever_download, context_id,
150-
html, get_cdp_session_id, filename):
150+
html, get_cdp_session_id, filename, some_host):
151151

152152
page_url = html(
153-
f"""<a id="download_link" href="{url_hang_forever_download()}" download="{filename}">Download</a>"""
153+
f"""<a id="download_link" href="{url_hang_forever_download}" download="{filename}">Download</a>"""
154154
)
155155
await goto_url(websocket, context_id, page_url)
156156

@@ -215,7 +215,7 @@ async def test_browsing_context_download_finished_canceled(
215215
'navigation': navigation_id,
216216
'status': 'canceled',
217217
'timestamp': ANY_TIMESTAMP,
218-
'url': url_hang_forever_download(),
218+
'url': url_hang_forever_download,
219219
},
220220
'type': 'event',
221221
}

0 commit comments

Comments
 (0)