From 8d7ced876a5977cb6c4d0998f9781bdbc1796fe2 Mon Sep 17 00:00:00 2001 From: andrewelamb Date: Sun, 28 Jan 2024 11:11:46 -0800 Subject: [PATCH] replace MolecularEntity with Patient (#2469) --- .../schematic_api/test/test_schema_controller_endpoints.py | 2 +- .../api/schematic_api/test/test_schema_controller_impl.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/schematic/api/schematic_api/test/test_schema_controller_endpoints.py b/apps/schematic/api/schematic_api/test/test_schema_controller_endpoints.py index 526d9c311e..a3c5e72121 100644 --- a/apps/schematic/api/schematic_api/test/test_schema_controller_endpoints.py +++ b/apps/schematic/api/schematic_api/test/test_schema_controller_endpoints.py @@ -17,7 +17,7 @@ NODE_IS_REQUIRED_URL = "/api/v1/nodes/FamilyHistory/isRequired?schemaUrl=" PROPERTY_LABEL_URL = "/api/v1/nodes/node_label/propertyLabel?schemaUrl=" SCHEMA_ATTRIBUTES_URL = "/api/v1/schemaAttributes?schemaUrl=" -NODE_PROPERTIES_URL = "/api/v1/nodes/MolecularEntity/nodeProperties?schemaUrl=" +NODE_PROPERTIES_URL = "/api/v1/nodes/Patient/nodeProperties?schemaUrl=" NODE_VALIDATION_RULES_URL = "/api/v1/nodes/CheckRegexList/validationRules?schemaUrl=" NODE_DEPENDENCY_ARRAY_URL = "/api/v1/nodes/Patient/dependencyArray?schemaUrl=" NODE_DEPENDENCY_PAGE_URL = "/api/v1/nodes/Patient/dependencyPage?schemaUrl=" diff --git a/apps/schematic/api/schematic_api/test/test_schema_controller_impl.py b/apps/schematic/api/schematic_api/test/test_schema_controller_impl.py index c85cbc05a7..62e7d18fa5 100644 --- a/apps/schematic/api/schematic_api/test/test_schema_controller_impl.py +++ b/apps/schematic/api/schematic_api/test/test_schema_controller_impl.py @@ -173,7 +173,7 @@ class TestGetNodeProperties: def test_success(self, test_schema_url: str) -> None: """Test for successful result""" result, status = get_node_properties( - node_label="MolecularEntity", + node_label="Patient", schema_url=test_schema_url, ) assert status == 200 @@ -185,7 +185,7 @@ def test_success(self, test_schema_url: str) -> None: def test_internal_error(self) -> None: """Test for 500 result""" result, status = get_node_properties( - node_label="MolecularEntity", + node_label="Patient", schema_url="not_a_url", ) assert status == 500