From e7036f777e90f16ca432b6170601d8f46852596c Mon Sep 17 00:00:00 2001 From: eecavanna Date: Fri, 6 Dec 2024 11:00:42 -0800 Subject: [PATCH] Make `id` typecode parts and document `type`s be consistent in doctests --- .../migrator_from_11_1_0_to_11_2_0_part_1.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/nmdc_schema/migrators/partials/migrator_from_11_1_0_to_11_2_0/migrator_from_11_1_0_to_11_2_0_part_1.py b/nmdc_schema/migrators/partials/migrator_from_11_1_0_to_11_2_0/migrator_from_11_1_0_to_11_2_0_part_1.py index 16473f583f..dd59b5527a 100644 --- a/nmdc_schema/migrators/partials/migrator_from_11_1_0_to_11_2_0/migrator_from_11_1_0_to_11_2_0_part_1.py +++ b/nmdc_schema/migrators/partials/migrator_from_11_1_0_to_11_2_0/migrator_from_11_1_0_to_11_2_0_part_1.py @@ -227,13 +227,13 @@ def apply_calibration_mapping(self, workflow_execution: dict) -> dict: >>> from nmdc_schema.migrators.adapters.dictionary_adapter import DictionaryAdapter >>> m = Migrator(adapter=DictionaryAdapter(database={})) >>> m.calibration_mappings = { - ... 'nmdc:wfnom-99-abc123': 'nmdc:calib-99-def456', - ... 'nmdc:wfnom-99-foobar': 'nmdc:calib-99-bazqux', + ... 'nmdc:wfmgan-99-abc123': 'nmdc:calib-99-def456', + ... 'nmdc:wfmgan-99-foobar': 'nmdc:calib-99-bazqux', ... } - >>> m.apply_calibration_mapping({'id': 'nmdc:wfnom-99-abc123', 'type': 'nmdc:MetagenomeAnnotation'}) # id is in mapping dictionary - {'id': 'nmdc:wfnom-99-abc123', 'type': 'nmdc:MetagenomeAnnotation', 'uses_calibration': 'nmdc:calib-99-def456'} - >>> m.apply_calibration_mapping({'id': 'nmdc:wfnom-00-abc123', 'type': 'nmdc:MetagenomeAnnotation'}) # id is not in mapping dictionary - {'id': 'nmdc:wfnom-00-abc123', 'type': 'nmdc:MetagenomeAnnotation'} + >>> m.apply_calibration_mapping({'id': 'nmdc:wfmgan-99-abc123', 'type': 'nmdc:MetagenomeAnnotation'}) # id is in mapping dictionary + {'id': 'nmdc:wfmgan-99-abc123', 'type': 'nmdc:MetagenomeAnnotation', 'uses_calibration': 'nmdc:calib-99-def456'} + >>> m.apply_calibration_mapping({'id': 'nmdc:wfmgan-00-abc123', 'type': 'nmdc:MetagenomeAnnotation'}) # id is not in mapping dictionary + {'id': 'nmdc:wfmgan-00-abc123', 'type': 'nmdc:MetagenomeAnnotation'} """ workflow_execution_id = workflow_execution["id"]