@@ -160,8 +160,6 @@ def test_process_row_success(self):
160160 Test that process_row gives the expected output.
161161 These tests check that the row is valid and matches the expected output.
162162 """
163- self .maxDiff = None
164-
165163 # call 'process_row' with required details
166164 imms_fhir_resource = process_row (TargetDiseaseElements .RSV , Allowed_Operations , ROW_DETAILS )
167165 # validate if the response with expected result
@@ -243,41 +241,37 @@ def test_process_row_missing_unique_id_uri(self):
243241 )
244242 self .assertEqual (response ["diagnostics" ]["statusCode" ], 400 )
245243
246- def test_process_row_successfully_uplifts_legacy_TPP_uri (self ):
244+ def test_process_row_successfully_uplifts_legacy_tpp_uri (self ):
247245 """
248246 Test that process_row gives the expected output.
249247 These tests check that the row is valid and matches the expected output.
250248 """
251- legacy_TPP_row = deepcopy (ROW_DETAILS )
252- legacy_TPP_row ["UNIQUE_ID_URI" ] = "YGA"
253-
254- expected_successful_result_TPP = deepcopy (expected_successful_result )
255- expected_successful_result_TPP ["identifier" ][0 ]["system" ] = "https://tpp-uk.com/Id/ve/vacc"
249+ legacy_tpp_row = deepcopy (ROW_DETAILS )
250+ legacy_tpp_row ["UNIQUE_ID_URI" ] = "YGA"
256251
257- self .maxDiff = None
252+ expected_successful_result_tpp = deepcopy (expected_successful_result )
253+ expected_successful_result_tpp ["identifier" ][0 ]["system" ] = "https://tpp-uk.com/Id/ve/vacc"
258254
259255 # call 'process_row' with required details
260- imms_fhir_resource = process_row (TargetDiseaseElements .RSV , Allowed_Operations , legacy_TPP_row )
256+ imms_fhir_resource = process_row (TargetDiseaseElements .RSV , Allowed_Operations , legacy_tpp_row )
261257 # validate if the response with expected result
262- self .assertDictEqual (imms_fhir_resource ["fhir_json" ], expected_successful_result_TPP )
258+ self .assertDictEqual (imms_fhir_resource ["fhir_json" ], expected_successful_result_tpp )
263259
264- def test_process_row_successfully_uplifts_legacy_EMIS_uri (self ):
260+ def test_process_row_successfully_uplifts_legacy_emis_uri (self ):
265261 """
266262 Test that process_row gives the expected output.
267263 These tests check that the row is valid and matches the expected output.
268264 """
269- legacy_EMIS_row = deepcopy (ROW_DETAILS )
270- legacy_EMIS_row ["UNIQUE_ID_URI" ] = "YGJ"
271-
272- expected_successful_result_EMIS = deepcopy (expected_successful_result )
273- expected_successful_result_EMIS ["identifier" ][0 ]["system" ] = "https://emishealth.com/identifiers/vacc"
265+ legacy_emis_row = deepcopy (ROW_DETAILS )
266+ legacy_emis_row ["UNIQUE_ID_URI" ] = "YGJ"
274267
275- self .maxDiff = None
268+ expected_successful_result_emis = deepcopy (expected_successful_result )
269+ expected_successful_result_emis ["identifier" ][0 ]["system" ] = "https://emishealth.com/identifiers/vacc"
276270
277271 # call 'process_row' with required details
278- imms_fhir_resource = process_row (TargetDiseaseElements .RSV , Allowed_Operations , legacy_EMIS_row )
272+ imms_fhir_resource = process_row (TargetDiseaseElements .RSV , Allowed_Operations , legacy_emis_row )
279273 # validate if the response with expected result
280- self .assertDictEqual (imms_fhir_resource ["fhir_json" ], expected_successful_result_EMIS )
274+ self .assertDictEqual (imms_fhir_resource ["fhir_json" ], expected_successful_result_emis )
281275
282276
283277if __name__ == "__main__" :
0 commit comments