File size: 1,028 Bytes
12b2a15 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | from __future__ import annotations
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
def main() -> None:
ui_source = (ROOT / "ui_gradio.py").read_text(encoding="utf-8")
admin_source = (ROOT / "admin_panel.py").read_text(encoding="utf-8")
config_source = (ROOT / "config.py").read_text(encoding="utf-8")
forbidden_ui_symbols = (
'gr.Tab("Decision Runtime")',
"decision_type_choices",
"render_decision_runtime_dashboard",
"run_decision_runtime_ui",
)
for symbol in forbidden_ui_symbols:
assert symbol not in ui_source, f"Removed Decision Runtime UI reference returned: {symbol}"
assert symbol not in admin_source, f"Removed Decision Runtime admin reference returned: {symbol}"
assert 'gr.Tab("Kurumsal Onboarding")' in ui_source
assert "Knowledge Assistant + Decision Runtime" not in config_source
print("Admin UI checks passed: Decision Runtime tab absent; onboarding retained.")
if __name__ == "__main__":
main()
|