Files
kefu/deploy/review-assistant-20260917/run_protocol_regressions.py
T
2026-09-21 10:34:06 +08:00

21 lines
1.1 KiB
Python

import runpy
import sys
import types
from pathlib import Path
# Until the independently implemented shared module arrives, exercise the old
# disabled-feature paths with an inert injectable coordinator. No file sends.
if not Path(r'C:\wechat_rpa\review_assistant.py').exists():
class DisabledCoordinator:
def __init__(self, **kwargs): pass
def enabled(self): return False
def close(self): pass
sys.modules['review_assistant'] = types.SimpleNamespace(ReviewAssistantCoordinator=DisabledCoordinator)
sys.argv = [r'C:\kefu\deploy\loading-performance-20260917\run_isolated.py',
r'C:\wechat_rpa', r'C:\kefu\deploy\review-assistant-20260917\protocol-regression-tests.json',
'test_protocol_review_assistant', 'test_native_protocol_pipeline',
'test_protocol_review_visibility', 'test_protocol_listener_continuity',
'test_protocol_session_exclusions', 'test_protocol_audit_boundaries',
'test_contact_reply_guard.ProtocolContactTests', 'test_database_timestamp_audit']
runpy.run_path(sys.argv[0], run_name='__main__')