diff --git a/src/usdm_excel/cross_ref.py b/src/usdm_excel/cross_ref.py index 4283752..a994f9b 100644 --- a/src/usdm_excel/cross_ref.py +++ b/src/usdm_excel/cross_ref.py @@ -40,7 +40,6 @@ def get_by_id(self, klass, id): if id_key in self._identifiers: return self._identifiers[id_key] else: - self._debug(f"{inspect.stack()[1][3]}") self._debug(f"Failed to find by id: klass={self._klass_name(klass)}, id={id}, key={id_key}:\n\n{'':<9}identifiers={self._identifiers.keys()}") return None diff --git a/tests/integration_test_files/full_1.json b/tests/integration_test_files/full_1.json index 08c75e0..58a4330 100644 --- a/tests/integration_test_files/full_1.json +++ b/tests/integration_test_files/full_1.json @@ -3644,7 +3644,7 @@ "organizations": [ { "id": "Organization_6", - "name": "European Union", + "name": "European Union 1", "label": "EU EMA PIP Scheme", "type": { "id": "Code_61", diff --git a/tests/integration_test_files/full_1.xlsx b/tests/integration_test_files/full_1.xlsx index 26db2bc..7fd8895 100644 Binary files a/tests/integration_test_files/full_1.xlsx and b/tests/integration_test_files/full_1.xlsx differ diff --git a/tests/integration_test_files/full_1_neo4j_dict.yaml b/tests/integration_test_files/full_1_neo4j_dict.yaml index e293bc4..cbf55d7 100644 --- a/tests/integration_test_files/full_1_neo4j_dict.yaml +++ b/tests/integration_test_files/full_1_neo4j_dict.yaml @@ -5839,7 +5839,7 @@ nodes: identifierScheme: EU instanceType: Organization label: EU EMA PIP Scheme - name: European Union + name: European Union 1 uuid: 00000000-0000-4000-8000-000000000435 - id: Organization_1 identifier: CT-GOV diff --git a/tests/test_study_role_sheet.py b/tests/test_study_role_sheet.py index 6b21fd9..2d168a8 100644 --- a/tests/test_study_role_sheet.py +++ b/tests/test_study_role_sheet.py @@ -17,13 +17,13 @@ def test_create(factory, mocker, globals): } expected_1 = ( '{"id": "AP_1", "name": "AP1", "label": "Lable 1", "description": "Desc One", ' '"code": {"id": "C_4", "code": "C25936", "codeSystem": "http://www.cdisc.org", "codeSystemVersion": "2023-12-15", "decode": "Investigator", "instanceType": "Code"}, ' - '"appliesToIds": [], "assignedPersons": [], "organizationIds": [], ' + '"appliesToIds": [], "assignedPersons": [], "organizationIds": ["O_1"], ' '"masking": {"id": "M_1", "description": "Masking 1", "instanceType": "Masking"}, ' '"instanceType": "StudyRole"}' ) expected_2 = ( '{"id": "AP_2", "name": "AP2", "label": "L2", "description": "Desc Two", ' '"code": {"id": "C_5", "code": "C70793", "codeSystem": "http://www.cdisc.org", "codeSystemVersion": "2023-12-15", "decode": "Sponsor", "instanceType": "Code"}, ' - '"appliesToIds": [], "assignedPersons": [], "organizationIds": [], ' + '"appliesToIds": [], "assignedPersons": [], "organizationIds": ["O_2"], ' '"masking": {"id": "M_2", "description": "Masking 2", "instanceType": "Masking"}, ' '"instanceType": "StudyRole"}' )