Files
kefu/deploy/review-visibility-20260916/extend_visual_handoff_tests.py
T
2026-09-21 10:34:06 +08:00

12 lines
535 B
Python

from pathlib import Path
import shutil
base = Path(__file__).parent
path = base / 'test_visual_handoff_visibility.py'
source = path.read_text(encoding='utf-8')
assert 'test_plain_cancel_cannot_bypass' not in source
source = source.replace("\n\nif __name__ == '__main__':", '\n' + (base / 'visual_handoff_extra_tests.txt').read_text(encoding='utf-8') + "\n\nif __name__ == '__main__':")
path.write_text(source, encoding='utf-8')
for root in (Path('C:/wechat_rpa'), Path('C:/kefu/wechat_rpa')):
shutil.copy2(path, root / path.name)