dlite icon indicating copy to clipboard operation
dlite copied to clipboard

Make tests for instantiate in mappings.py

Open francescalb opened this issue 2 years ago • 0 comments

Instantiate is currently being tested indirectly.

New tests should be aded that tests only instantiate and instantiate_all.

Make sure that all argument possibilities are tested, e.g. different ways to set meta. The example below is taken from the musicode demo https://github.com/EMMC-ASBL/musicode-ote-intop-demo, whic can provide as inspiration for this test.

molecule = instantiate( #meta=str(MOL).rstrip("/#"), meta=MOL, instances=list(get_referred_instances(coll2)), triplestore=ts, allow_incomplete=True,)

francescalb avatar Oct 26 '23 12:10 francescalb