Skip to content

Commit 1894c6b

Browse files
authored
test: cleanup tests by removing print statements (microsoft#633)
1 parent 1df5a54 commit 1894c6b

File tree

5 files changed

+0
-25
lines changed

5 files changed

+0
-25
lines changed

tests/async/test_browsercontext_proxy.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ async def test_should_work_with_ip_port_notion(context_factory, server):
7373

7474
async def test_should_authenticate(context_factory, server):
7575
def handler(req):
76-
print(req)
7776
auth = req.getHeader("proxy-authorization")
7877
if not auth:
7978
req.setHeader(
@@ -102,7 +101,6 @@ def handler(req):
102101

103102
async def test_should_authenticate_with_empty_password(context_factory, server):
104103
def handler(req):
105-
print(req)
106104
auth = req.getHeader("proxy-authorization")
107105
if not auth:
108106
req.setHeader(

tests/async/test_launcher.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -61,25 +61,6 @@ async def test_browser_type_launch_should_reject_if_executable_path_is_invalid(
6161
assert "browser was not found" in exc.value.message
6262

6363

64-
@pytest.mark.skip()
65-
async def test_browser_type_launch_server_should_return_child_process_instance(
66-
browser_type, launch_arguments
67-
):
68-
browser_server = await browser_type.launchServer(**launch_arguments)
69-
assert browser_server.pid > 0
70-
await browser_server.close()
71-
72-
73-
@pytest.mark.skip()
74-
async def test_browser_type_launch_server_should_fire_close_event(
75-
browser_type, launch_arguments
76-
):
77-
browser_server = await browser_type.launchServer(**launch_arguments)
78-
close_event = asyncio.Future()
79-
browser_server.on("close", lambda: close_event.set_result(None))
80-
await asyncio.gather(close_event, browser_server.close())
81-
82-
8364
async def test_browser_type_executable_path_should_work(browser_type, browser_channel):
8465
if browser_channel:
8566
return

tests/async/test_proxy.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ async def test_should_work_with_ip_port_notion(browser_factory, server):
7474

7575
async def test_should_authenticate(browser_factory, server):
7676
def handler(req):
77-
print(req)
7877
auth = req.getHeader("proxy-authorization")
7978
if not auth:
8079
req.setHeader(
@@ -103,7 +102,6 @@ def handler(req):
103102

104103
async def test_should_authenticate_with_empty_password(browser_factory, server):
105104
def handler(req):
106-
print(req)
107105
auth = req.getHeader("proxy-authorization")
108106
if not auth:
109107
req.setHeader(

tests/sync/test_element_handle.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@ def test_owner_frame_for_iframe_elements(page, server, utils):
182182
utils.attach_frame(page, "frame1", server.EMPTY_PAGE)
183183
frame = page.main_frame
184184
element_handle = frame.evaluate_handle('document.querySelector("#frame1")')
185-
print(element_handle)
186185
assert element_handle.owner_frame() == frame
187186

188187

tests/sync/test_har.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ def test_should_include_content(browser, server, tmpdir):
5555
log = data["log"]
5656

5757
content1 = log["entries"][0]["response"]["content"]
58-
print(content1)
5958
assert content1["encoding"] == "base64"
6059
assert content1["mimeType"] == "text/html"
6160
s = base64.b64decode(content1["text"]).decode()

0 commit comments

Comments
 (0)