20 lines
597 B
Python
20 lines
597 B
Python
import json
|
|
|
|
from scripts.run_local_validation import build_validation_report
|
|
|
|
|
|
def test_validation_report_is_deterministic_and_write_free(tmp_path):
|
|
artifacts = {
|
|
"preflight": {"status": "PASS"},
|
|
"company_context": {"status": "PASS"},
|
|
"deterministic_engine": {"status": "PASS"},
|
|
"ai_ready": {"status": "PREPARED", "writes": 0},
|
|
}
|
|
|
|
first = build_validation_report(artifacts)
|
|
second = build_validation_report(json.loads(json.dumps(artifacts)))
|
|
|
|
assert first == second
|
|
assert first["firebird_writes"] == 0
|
|
assert first["status"] == "PASS"
|