import json,re,sys
from pathlib import Path
p=Path(__file__).parent
data=json.loads((p/'input.json').read_text())
expected=json.loads((p/'expected.json').read_text())
config=json.loads((p/'config.json').read_text())
assert config['_material_kind']=='field-and-fixture-lesson-not-importable-workflow'
assert expected['_evidence']=='human-authored-expected-output-not-live-run'
from decimal import Decimal
for source,out in zip(data['rows'],expected['rows']):
 assert source['invoice_id']==out['invoice_id']; assert out['cents']==(int(Decimal(source['amount'])*100) if source['currency']=='USD' else None)
print('PASS: fixture and expected contract; no product or model execution')
