1111)
1212from repository .fhir_batch_repository import ImmunizationBatchRepository
1313from service .fhir_batch_service import ImmunizationBatchService
14- from testing_utils .immunization_utils import create_covid_19_immunization
14+ from testing_utils .immunization_utils import create_covid_immunization
1515
1616
1717class TestCreateImmunizationBatchController (unittest .TestCase ):
@@ -25,7 +25,7 @@ def test_send_request_to_dynamo_create_success(self):
2525 """it should create Immunization and return imms id location"""
2626
2727 imms_id = str (uuid .uuid4 ())
28- imms = create_covid_19_immunization (imms_id )
28+ imms = create_covid_immunization (imms_id )
2929 message_body = {
3030 "supplier" : "test_supplier" ,
3131 "fhir_json" : imms .json (),
@@ -50,7 +50,7 @@ def test_send_request_to_dynamo_create_badrequest(self):
5050 """it should return error since it got failed in initial validation"""
5151
5252 imms_id = str (uuid .uuid4 ())
53- imms = create_covid_19_immunization (imms_id )
53+ imms = create_covid_immunization (imms_id )
5454 create_result = CustomValidationError (
5555 message = "Validation errors: contained[?(@.resourceType=='Patient')].identifier[0].value does not exists"
5656 )
@@ -79,7 +79,7 @@ def test_send_request_to_dynamo_create_duplicate(self):
7979 """it should not create the Immunization since its a duplicate record"""
8080
8181 imms_id = str (uuid .uuid4 ())
82- imms = create_covid_19_immunization (imms_id )
82+ imms = create_covid_immunization (imms_id )
8383 create_result = IdentifierDuplicationError (identifier = "test#123" )
8484 message_body = {
8585 "supplier" : "test_supplier" ,
@@ -105,7 +105,7 @@ def test_send_request_to_dynamo_create_unhandled_error(self):
105105 """it should not create the Immunization since the error occoured in db"""
106106
107107 imms_id = str (uuid .uuid4 ())
108- imms = create_covid_19_immunization (imms_id )
108+ imms = create_covid_immunization (imms_id )
109109 update_result = UnhandledResponseError (response = "Non-200 response from dynamodb" , message = "connection timeout" )
110110 message_body = {
111111 "supplier" : "test_supplier" ,
@@ -141,7 +141,7 @@ def test_send_request_to_dynamo_update_success(self):
141141 """it should update Immunization and return imms id"""
142142
143143 imms_id = str (uuid .uuid4 ())
144- imms = create_covid_19_immunization (imms_id )
144+ imms = create_covid_immunization (imms_id )
145145 message_body = {
146146 "supplier" : "test_supplier" ,
147147 "fhir_json" : imms .json (),
@@ -166,7 +166,7 @@ def test_send_request_to_dynamo_update_badrequest(self):
166166 """it should return error since it got failed in initial validation"""
167167
168168 imms_id = str (uuid .uuid4 ())
169- imms = create_covid_19_immunization (imms_id )
169+ imms = create_covid_immunization (imms_id )
170170 update_result = CustomValidationError (
171171 message = "Validation errors: contained[?(@.resourceType=='Patient')].identifier[0].value does not exists"
172172 )
@@ -194,7 +194,7 @@ def test_send_request_to_dynamo_update_resource_not_found(self):
194194 """it should not update the Immunization since no resource found for the record"""
195195
196196 imms_id = str (uuid .uuid4 ())
197- imms = create_covid_19_immunization (imms_id )
197+ imms = create_covid_immunization (imms_id )
198198 update_result = ResourceNotFoundError ("Immunization" , "test#123" )
199199 message_body = {
200200 "supplier" : "test_supplier" ,
@@ -220,7 +220,7 @@ def test_send_request_to_dynamo_update_unhandled_error(self):
220220 """it should not update the Immunization since the error occoured in db"""
221221
222222 imms_id = str (uuid .uuid4 ())
223- imms = create_covid_19_immunization (imms_id )
223+ imms = create_covid_immunization (imms_id )
224224 update_result = UnhandledResponseError (response = "Non-200 response from dynamodb" , message = "connection timeout" )
225225 message_body = {
226226 "supplier" : "test_supplier" ,
@@ -256,7 +256,7 @@ def test_send_request_to_dynamo_delete_success(self):
256256 """it should delete Immunization and return imms id"""
257257
258258 imms_id = str (uuid .uuid4 ())
259- imms = create_covid_19_immunization (imms_id )
259+ imms = create_covid_immunization (imms_id )
260260 message_body = {
261261 "supplier" : "test_supplier" ,
262262 "fhir_json" : imms .json (),
@@ -281,7 +281,7 @@ def test_send_request_to_dynamo_delete_badrequest(self):
281281 """it should return error since it got failed in initial validation"""
282282
283283 imms_id = str (uuid .uuid4 ())
284- imms = create_covid_19_immunization (imms_id )
284+ imms = create_covid_immunization (imms_id )
285285 update_result = CustomValidationError (
286286 message = "Validation errors: contained[?(@.resourceType=='Patient')].identifier[0].value does not exists"
287287 )
@@ -309,7 +309,7 @@ def test_send_request_to_dynamo_delete_resource_not_found(self):
309309 """it should not delete the Immunization since no resource found for the record"""
310310
311311 imms_id = str (uuid .uuid4 ())
312- imms = create_covid_19_immunization (imms_id )
312+ imms = create_covid_immunization (imms_id )
313313 update_result = ResourceNotFoundError ("Immunization" , "test#123" )
314314 message_body = {
315315 "supplier" : "test_supplier" ,
@@ -335,7 +335,7 @@ def test_send_request_to_dynamo_delete_unhandled_error(self):
335335 """it should not delete the Immunization since the error occoured in db"""
336336
337337 imms_id = str (uuid .uuid4 ())
338- imms = create_covid_19_immunization (imms_id )
338+ imms = create_covid_immunization (imms_id )
339339 update_result = UnhandledResponseError (response = "Non-200 response from dynamodb" , message = "connection timeout" )
340340 message_body = {
341341 "supplier" : "test_supplier" ,
0 commit comments