We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70c2c16 commit 9996fd8Copy full SHA for 9996fd8
utils/modify_tests.py
@@ -146,6 +146,16 @@ def main():
146
with open("./tests/assets/inject.html", "w") as f:
147
f.write("<script>window.result = window.injected;</script>")
148
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
159
for root, _, files in os.walk("tests"):
160
for file in files:
161
file_path = os.path.join(root, file)
0 commit comments