Skip to content
This repository was archived by the owner on Jul 12, 2022. It is now read-only.

Commit 354d82f

Browse files
committed
enh(TC): strict jsonschema on seatbelt vhs
1 parent 2dcbcf4 commit 354d82f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/vehdb.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,11 @@ def mdl_from_accdb(props, wot, n2vs: List[float]) -> dict:
566566

567567

568568
def run_pyalgo_on_accdb_vehicle(
569-
h5, vehnum, props_group_suffix="prop", pwot_group_suffix="wot"
569+
h5,
570+
vehnum,
571+
additional_properties=False,
572+
props_group_suffix="prop",
573+
pwot_group_suffix="wot",
570574
) -> Tuple[dict, pd.DataFrame, pd.DataFrame]:
571575
"""
572576
Quick 'n dirty way to invoke python-algo (bc model will change).
@@ -583,7 +587,7 @@ def run_pyalgo_on_accdb_vehicle(
583587
props, wot, n2vs = load_vehicle_accdb(h5, vehnum)
584588

585589
mdl = mdl_from_accdb(props, wot, n2vs)
586-
datamodel.validate_model(mdl, additional_properties=True)
590+
datamodel.validate_model(mdl, additional_properties=additional_properties)
587591
exp = Experiment(mdl, skip_model_validation=True)
588592
mdl = exp.run()
589593

0 commit comments

Comments
 (0)