@@ -90,26 +90,26 @@ def test_get_nested_data_unit(self, get_file_path_mock, _, get_units_mock):
9090
9191 assert result == ("Unit" , "prefix#Unit" )
9292
93- @mock .patch ("esmf_aspect_meta_model_python.samm_meta_model.SammUnitsGraph.get_description " )
93+ @mock .patch ("esmf_aspect_meta_model_python.samm_meta_model.SammUnitsGraph.get_info " )
9494 @mock .patch ("esmf_aspect_meta_model_python.samm_meta_model.SammUnitsGraph._get_units" )
9595 @mock .patch ("esmf_aspect_meta_model_python.samm_meta_model.SammUnitsGraph._validate_path" )
9696 @mock .patch ("esmf_aspect_meta_model_python.samm_meta_model.SammUnitsGraph._get_file_path" )
97- def test_get_nested_data_not_unit (self , get_file_path_mock , _ , get_units_mock , get_description_mock ):
97+ def test_get_nested_data_not_unit (self , get_file_path_mock , _ , get_units_mock , get_info_mock ):
9898 get_file_path_mock .return_value = "unit_file_path"
9999 get_units_mock .return_value = "graph"
100- get_description_mock .return_value = "nested_value"
100+ get_info_mock .return_value = "nested_value"
101101 units_graph = SammUnitsGraph ()
102102 result = units_graph ._get_nested_data ("prefix#unitType" )
103103
104104 assert result == ("unitType" , "nested_value" )
105- get_description_mock .assert_called_once_with ("unit:unitType" )
105+ get_info_mock .assert_called_once_with ("unit:unitType" )
106106
107107 @mock .patch ("esmf_aspect_meta_model_python.samm_meta_model.SammUnitsGraph._get_nested_data" )
108108 @mock .patch ("esmf_aspect_meta_model_python.samm_meta_model.isinstance" )
109109 @mock .patch ("esmf_aspect_meta_model_python.samm_meta_model.SammUnitsGraph._get_units" )
110110 @mock .patch ("esmf_aspect_meta_model_python.samm_meta_model.SammUnitsGraph._validate_path" )
111111 @mock .patch ("esmf_aspect_meta_model_python.samm_meta_model.SammUnitsGraph._get_file_path" )
112- def test_get_description (self , get_file_path_mock , _ , get_units_mock , isinstance_mock , get_nested_data_mock ):
112+ def test_get_info (self , get_file_path_mock , _ , get_units_mock , isinstance_mock , get_nested_data_mock ):
113113 get_file_path_mock .return_value = "unit_file_path"
114114 isinstance_mock .side_effect = (False , URIRef , URIRef )
115115 get_nested_data_mock .side_effect = [("type_key" , "type_description" ), ("sub_unit" , "sub_unit_description" )]
@@ -126,7 +126,7 @@ def test_get_description(self, get_file_path_mock, _, get_units_mock, isinstance
126126 graph_mock .query .return_value = [row_1_mock , row_2_mock , row_3_mock ]
127127 get_units_mock .return_value = graph_mock
128128 units_graph = SammUnitsGraph ()
129- result = units_graph .get_description ("unit:unit_name" )
129+ result = units_graph .get_info ("unit:unit_name" )
130130
131131 assert "unitType" in result
132132 assert result ["unitType" ] == "unit_1"
0 commit comments