From d9c311c75368b4704021856a4bcee43df34ef9f7 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Thu, 24 Feb 2022 19:07:17 +0100 Subject: [PATCH] chore: roll Playwright to 1.19.2 (#1172) --- setup.py | 2 +- tests/async/test_fetch_global.py | 4 +--- tests/sync/test_fetch_global.py | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index 2490536ef..217fb6f0e 100644 --- a/setup.py +++ b/setup.py @@ -30,7 +30,7 @@ InWheel = None from wheel.bdist_wheel import bdist_wheel as BDistWheelCommand -driver_version = "1.19.0" +driver_version = "1.19.2" def extractall(zip: zipfile.ZipFile, path: str) -> None: diff --git a/tests/async/test_fetch_global.py b/tests/async/test_fetch_global.py index 0b3b56a03..98af083ef 100644 --- a/tests/async/test_fetch_global.py +++ b/tests/async/test_fetch_global.py @@ -41,9 +41,7 @@ async def test_should_work(playwright: Playwright, method: str, server: Server): "name": "Content-Type", "value": "application/json", } in response.headers_array - assert await response.text() == ( - "" if method in ["head", "put"] else '{"foo": "bar"}\n' - ) + assert await response.text() == ("" if method == "head" else '{"foo": "bar"}\n') async def test_should_dispose_global_request(playwright: Playwright, server: Server): diff --git a/tests/sync/test_fetch_global.py b/tests/sync/test_fetch_global.py index fcf21e1c3..a4d7e71ff 100644 --- a/tests/sync/test_fetch_global.py +++ b/tests/sync/test_fetch_global.py @@ -36,7 +36,7 @@ def test_should_work(playwright: Playwright, method: str, server: Server) -> Non "name": "Content-Type", "value": "application/json", } in response.headers_array - assert response.text() == ("" if method in ["head", "put"] else '{"foo": "bar"}\n') + assert response.text() == ("" if method == "head" else '{"foo": "bar"}\n') def test_should_dispose_global_request(playwright: Playwright, server: Server) -> None: