Skip to content

Commit 9996fd8

Browse files
committed
Fix Patchright Rename
1 parent 70c2c16 commit 9996fd8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

utils/modify_tests.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,16 @@ def main():
146146
with open("./tests/assets/inject.html", "w") as f:
147147
f.write("<script>window.result = window.injected;</script>")
148148

149+
with open("./tests/conftest.py", "r") as read_f:
150+
conftest_content = read_f.read()
151+
updated_conftest_content = conftest_content.replace(
152+
"Path(inspect.getfile(playwright)).parent / 'driver'",
153+
"Path(inspect.getfile(patchright)).parent / 'driver'"
154+
)
155+
with open("./tests/conftest.py", "w") as write_f:
156+
write_f.write(updated_conftest_content)
157+
158+
149159
for root, _, files in os.walk("tests"):
150160
for file in files:
151161
file_path = os.path.join(root, file)

0 commit comments

Comments
 (0)