File size: 444 Bytes
e1a9577 | 1 2 3 4 5 6 7 8 9 10 | import json
from pathlib import Path
DATA_DIR = Path(__file__).resolve().parents[1] / "synthetic_dataset"
def _rows(): return [json.loads(l) for l in (DATA_DIR / "notes_500.jsonl").read_text().splitlines() if l.strip()]
def test_no_conflicts():
for r in _rows():
labs=[l["cpt"] for l in r["labels"]]
assert not ("22633" in labs and "22558" in labs), "Cannot mix TLIF and ALIF in same case"
print("✅ test_conflicts ready")
|