Files
boehmitools-training/plugins/trainingstracker/tests/test_stability.py
T
2026-09-01 16:27:43 +02:00

21 lines
587 B
Python

from __future__ import annotations
import json
import sys
from pathlib import Path
sys.path.insert(0, str(Path(__file__).parents[1]))
from contract import CONTRACT_VERSION, PLAN_SCHEMA_VERSION
def test_manifest_matches_slim_training_contract():
manifest = json.loads((Path(__file__).parents[1] / "plugin.json").read_text(encoding="utf-8"))
assert manifest["contract"] == {
"plan_schema": PLAN_SCHEMA_VERSION,
"training_contract": CONTRACT_VERSION,
}
assert "tracker_schema" not in manifest["contract"]
assert "KI" not in manifest["description"]