Skip to content

Commit e11f827

Browse files
committed
Fix Failing Tests
1 parent dbd3d22 commit e11f827

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

patch_python_package.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ async def route_handler(route: Route) -> None:
503503
class_node.body = ast.parse("""\
504504
if self._browser_context._options.get("recordVideo") is None:
505505
return None
506-
return self._force_video()""").body
506+
return self._video""").body
507507

508508
node.body.append(
509509
ast.Assign(

utils/modify_tests.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"test_workers_should_report_errors",
4242
"test_worker_should_report_console_event",
4343
"test_worker_should_report_console_event_when_not_listening_on_page_or_context",
44+
"test_weberror_event_should_include_location",
4445

4546
# InitScript Timing
4647
"test_expose_function_should_be_callable_from_inside_add_init_script",
@@ -198,6 +199,13 @@ def main():
198199
if file.endswith('.py'):
199200
process_file(file_path)
200201

202+
if file == "conftest.py":
203+
with open(file_path, 'r', encoding='utf-8') as f:
204+
content = f.read()
205+
content = content.replace("inspect.getfile(playwright)", "inspect.getfile(patchright)")
206+
with open(file_path, 'w', encoding='utf-8') as f:
207+
f.write(content)
208+
201209
if file == "test_queryselector.py":
202210
with open(file_path, 'r', encoding='utf-8') as f:
203211
content = f.read()

0 commit comments

Comments
 (0)