@@ -241,42 +241,6 @@ def test_process_row_missing_unique_id_uri(self):
241241 )
242242 self .assertEqual (response ["diagnostics" ]["statusCode" ], 400 )
243243
244- def test_process_row_successfully_uplifts_legacy_tpp_uri (self ):
245- """
246- Test that process_row gives the expected output.
247- These tests check that the row is valid and matches the expected output.
248- """
249- legacy_tpp_row = deepcopy (ROW_DETAILS )
250- legacy_tpp_row ["UNIQUE_ID_URI" ] = "YGA"
251-
252- expected_successful_result_tpp = deepcopy (expected_successful_result )
253- expected_successful_result_tpp ["identifier" ][0 ]["system" ] = "https://tpp-uk.com/Id/ve/vacc"
254-
255- # call 'process_row' with required details
256- imms_fhir_resource = process_row (TargetDiseaseElements .RSV , Allowed_Operations , legacy_tpp_row )
257- # validate if the response with expected result
258- self .assertDictEqual (imms_fhir_resource ["fhir_json" ], expected_successful_result_tpp )
259- self .assertEqual (legacy_tpp_row ["UNIQUE_ID_URI" ], "https://tpp-uk.com/Id/ve/vacc" )
260- self .assertEqual (imms_fhir_resource ["local_id" ], "RSV_002^https://tpp-uk.com/Id/ve/vacc" )
261-
262- def test_process_row_successfully_uplifts_legacy_emis_uri (self ):
263- """
264- Test that process_row gives the expected output.
265- These tests check that the row is valid and matches the expected output.
266- """
267- legacy_emis_row = deepcopy (ROW_DETAILS )
268- legacy_emis_row ["UNIQUE_ID_URI" ] = "YGJ"
269-
270- expected_successful_result_emis = deepcopy (expected_successful_result )
271- expected_successful_result_emis ["identifier" ][0 ]["system" ] = "https://emishealth.com/identifiers/vacc"
272-
273- # call 'process_row' with required details
274- imms_fhir_resource = process_row (TargetDiseaseElements .RSV , Allowed_Operations , legacy_emis_row )
275- # validate if the response with expected result
276- self .assertDictEqual (imms_fhir_resource ["fhir_json" ], expected_successful_result_emis )
277- self .assertEqual (legacy_emis_row ["UNIQUE_ID_URI" ], "https://emishealth.com/identifiers/vacc" )
278- self .assertEqual (imms_fhir_resource ["local_id" ], "RSV_002^https://emishealth.com/identifiers/vacc" )
279-
280244
281245if __name__ == "__main__" :
282246 unittest .main ()
0 commit comments