run_final_checks.py

back to table · edit · history · where entries came from · files · download

596 bytes, as of the version from 2026-11-26 13:45 (current). Recorded here, not run.

import json,os,sys
from pathlib import Path
import dry_run
import numberdb.sage as numberdb
from generate import Kashaev
W=Path(__file__).resolve().parent
key=sys.stdin.read().strip()
if '=' in key and key.split('=',1)[0].isupper():key=key.split('=',1)[1].strip().strip('\"\'')
numberdb.configure(api_key=key)
print('Final native-return-type and deterministic checks')
assert dry_run.main([str(W/'generate.py')])==0
report=Kashaev().verify(sample=None,client=numberdb.Client(api_key=key,as_sage=True))
print('Final verify',report)
assert report.ok and report.checked==465 and report.matched==465