bnewcomer/MediBot
0
1from pathlib import Path2import sys3 4 5ROOT = Path(__file__).resolve().parents[1]6if str(ROOT) not in sys.path:7 sys.path.insert(0, str(ROOT))8 9from eval.real_query_runner import build_deterministic_app, evaluate_case, format_results, load_cases # noqa: E40210 11 12def main() -> int:13 app = build_deterministic_app()14 # Return a nonzero exit code so this script can be used in automation.15 results = [evaluate_case(app, case) for case in load_cases()]16 print(format_results(results))17 return 0 if all(result["passed"] for result in results) else 118 19 20if __name__ == "__main__":21 raise SystemExit(main())22 